文件名称:spring_beginning
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- yan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1、spring依赖库
* SPRING_HOME/dist/spring.jar
* SPRING_HOME/lib/jakarta-commons/commons-logging.jar
* SPRING_HOME/lib/log4j/log4j-1.2.14.jar
2、拷贝spring配置文件到src下
3、拷贝log4j配置文件到src下
4、在UserManagerImpl中提供构造函数或setter方法,spring将实例化好的UserDao实现注入给我们
5、让spring管理我们的对象创建和依赖,必须在spring配置中进行定义
6、编写客户端
spring Ioc容器的关键点:
* 必须将被管理的对象定义到spring配置文件中
* 必须定义构造函数或setter方法,让spring将对象注入过来
* SPRING_HOME/dist/spring.jar
* SPRING_HOME/lib/jakarta-commons/commons-logging.jar
* SPRING_HOME/lib/log4j/log4j-1.2.14.jar
2、拷贝spring配置文件到src下
3、拷贝log4j配置文件到src下
4、在UserManagerImpl中提供构造函数或setter方法,spring将实例化好的UserDao实现注入给我们
5、让spring管理我们的对象创建和依赖,必须在spring配置中进行定义
6、编写客户端
spring Ioc容器的关键点:
* 必须将被管理的对象定义到spring配置文件中
* 必须定义构造函数或setter方法,让spring将对象注入过来
(系统自动生成,下载前可以参看下载内容)
下载文件列表
spring_beginning
................\.classpath
................\.project
................\bin
................\...\applicationContext.xml
................\...\com
................\...\...\bjsxt
................\...\...\.....\spring
................\...\...\.....\......\client
................\...\...\.....\......\......\Client.class
................\...\...\.....\......\dao
................\...\...\.....\......\...\UserDao.class
................\...\...\.....\......\...\UserDao4MySqlImpl.class
................\...\...\.....\......\...\UserDao4OracleImpl.class
................\...\...\.....\......\manager
................\...\...\.....\......\.......\UserManager.class
................\...\...\.....\......\.......\UserManagerImpl.class
................\...\log4j.properties
................\readme.txt
................\src
................\...\applicationContext.xml
................\...\com
................\...\...\bjsxt
................\...\...\.....\spring
................\...\...\.....\......\client
................\...\...\.....\......\......\Client.java
................\...\...\.....\......\dao
................\...\...\.....\......\...\UserDao.java
................\...\...\.....\......\...\UserDao4MySqlImpl.java
................\...\...\.....\......\...\UserDao4OracleImpl.java
................\...\...\.....\......\manager
................\...\...\.....\......\.......\UserManager.java
................\...\...\.....\......\.......\UserManagerImpl.java
................\...\log4j.properties
................\.classpath
................\.project
................\bin
................\...\applicationContext.xml
................\...\com
................\...\...\bjsxt
................\...\...\.....\spring
................\...\...\.....\......\client
................\...\...\.....\......\......\Client.class
................\...\...\.....\......\dao
................\...\...\.....\......\...\UserDao.class
................\...\...\.....\......\...\UserDao4MySqlImpl.class
................\...\...\.....\......\...\UserDao4OracleImpl.class
................\...\...\.....\......\manager
................\...\...\.....\......\.......\UserManager.class
................\...\...\.....\......\.......\UserManagerImpl.class
................\...\log4j.properties
................\readme.txt
................\src
................\...\applicationContext.xml
................\...\com
................\...\...\bjsxt
................\...\...\.....\spring
................\...\...\.....\......\client
................\...\...\.....\......\......\Client.java
................\...\...\.....\......\dao
................\...\...\.....\......\...\UserDao.java
................\...\...\.....\......\...\UserDao4MySqlImpl.java
................\...\...\.....\......\...\UserDao4OracleImpl.java
................\...\...\.....\......\manager
................\...\...\.....\......\.......\UserManager.java
................\...\...\.....\......\.......\UserManagerImpl.java
................\...\log4j.properties