1. 新建项目: file → New → Project …→W eb Project → Next → Project Name: spring ( 项目名)→选中 Java EE → Finish ( 新建项目完成) spring 架包, 三个主要 jar 包 1) \software\spring-framework--with-dependencies\spring-framework-\di st 路劲下的: 2) \software\spring-framework--with-dependencies\spring-framework-\li b\mons 路径下的: commons- 3) \software\spring-framework--with-dependencies\spring-framework-\li b\log4j 路径下的: log4j- 一个配置文件: \software\spring-framework--with-dependencies\spring-framework-\sa mples\jpetstore\war\WEB-INF 路径下的: 其他类库增加 spring 依赖库, * SPRING_HOME/dist/ * SPRING_HOME/lib/mons- * SPRING_HOME/lib/log4j/log4j- 5 .jar 如果使用了切面编程,还需下列 jar 文件: lib\aspectj\ 和 lib\cglib\cglib-nodep- 如果使用了 jsr-250 中的注解,还需要下列 jar 文件: lib\mon- <? xml version = "" encoding = "UTF-8" ?> <!-- - Application context definition for JPetStore's business layer. - Contains bean references to the transaction manager and to the DAOs in - essContext-local/ (see 's "contextConfigLocation"). --> < beans xmlns = "ema/beans" xmlns:xsi = "1/XMLSchema-instance" xmlns:aop = "ema/aop" xmlns:tx = "ema/tx" xsi:schemaLocation =" ema/beans ema/beans/spring-beans- ema/ao
spring初试 来自淘豆网m.daumloan.com转载请标明出处.