摘要:
一、spring整合JDBC 1. spring提供了很多模板整合Dao技术 2. spring中提供了一个可以操作数据库的对象.对象封装了jdbc技术. JDBCTemplate => JDBC模板对象 与DBUtils中的QueryRunner非常相似. 3. 步骤: (1)导包 (4+2) + 阅读全文
posted @ 2018-01-29 18:50
zhoupan
阅读(241)
评论(0)
推荐(0)
摘要:
一、使用注解配置spring 1. 步骤: 2. 将对象注册到容器 3. 修改对象的作用范围 //指定对象的作用范围 @Scope(scopeName="singleton") 4. 值类型注入(两种方式) 5. 引用型类型注入 6. 初始化 | 销毁的方法 二、spring与junit整合测试 、 阅读全文
posted @ 2018-01-29 12:27
zhoupan
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号