摘要: 1.参考博文:数据库事务的四大特性以及事务的隔离级别 http://www.cnblogs.com/fjdingsd/p/5273008.html 2.参考博文:理解事务的4种隔离级别 http://blog.csdn.net/qq_33290787/article/details/51924963 阅读全文
posted @ 2017-04-15 23:44 chxbar 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 前述: 1.xml方式: 2.注解方式 然后在业务类【需要加事务的类】中:加上@Transaction注解: 阅读全文
posted @ 2017-04-15 23:21 chxbar 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 参考博文:http://www.blogjava.net/robbie/archive/2009/04/05/264003.html 博文学习重点: 第四种方式:使用tx标签配置的拦截器 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="htt 阅读全文
posted @ 2017-04-15 23:09 chxbar 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 参考博文:http://blog.csdn.net/u013905744/article/details/52437597 阅读全文
posted @ 2017-04-15 22:09 chxbar 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 1.什么是jdbcTemplate? 2.使用jdbcTemplate 3.crud操作 参考博文:http://blog.csdn.net/u014800380/article/details/64125653 4.采用配置文件的方式使用jdbcTemplate 参考博文:http://suyan 阅读全文
posted @ 2017-04-15 21:52 chxbar 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 参考博文:http://hyhai7.iteye.com/blog/837497 博文的错误指正: 1.需要补充导入的jar包: aopalliance-1.0.jar aspectj-1.8.9.jar aspectjrt.jar aspectjweaver.jar 2.applicationCo 阅读全文
posted @ 2017-04-15 20:42 chxbar 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.action 2.service 3.dao 4.applicationContext.xml【1.依赖类,set方式注入】 4.applicationContext.xml【1.依赖类,构造器方式注入】 阅读全文
posted @ 2017-04-15 16:39 chxbar 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.导包,略。 2.在src路径下创建applicationContext.xml文件,模板如下: 阅读全文
posted @ 2017-04-15 14:41 chxbar 阅读(158) 评论(0) 推荐(0) 编辑