摘要: 执行insert update delete操作 执行select操作 1.User实体类及get/set方法 测试类 3.配置文件 db.properties 阅读全文
posted @ 2017-11-28 18:28 无~所~谓 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:.Spring常规的数据库连接方法: 1 @RunWith(SpringJUnit4ClassRunner.class) 2 @ContextConfiguration(locations="classpath:applicationContext.xml") 3 public clas 阅读全文
posted @ 2017-11-28 14:49 无~所~谓 阅读(2357) 评论(0) 推荐(0) 编辑