摘要: Spring依赖注入的Setter注入(通过get和set方法注入) 导入必要的jar包(Spring.jar和commonslogging.jar) 在src目录下建立applicationContext.xml (Spring 管理 bean的配置文件) 2.Setter注入 java的数据类型 阅读全文
posted @ 2017-07-23 17:07 与f 阅读(5923) 评论(0) 推荐(0) 编辑
摘要: Spring 通过2种方式管理bean 首先要导入Spring的包,(Spring.jar和commonslogging.jar) 或加载分开的... 在src目录下建立applicationContext.xml (Spring 管理 bean的配置文件) 1.使用BeanFactory管理bea 阅读全文
posted @ 2017-07-23 16:13 与f 阅读(417) 评论(0) 推荐(0) 编辑