1.创建web工程 2.导入jar spring-framework-2.5.6\dist\spring.jar spring-framework-2.5.6\lib\jakarta-commons\commons-logging.jar spring-framework-2.5.6\lib\log4j\log4j-1.2.15.jar 3.导入配置文件 spring-framework-2.5.6\samples\jpetstore\war\WEB-INF\log4j.properties spring-framework-2.5.6\samples\jpetstore\war \WEB-INF\applicationContext.xml