摘要: 1.配置普通的 controller,service ,dao 的bean. 2.配置事务管理器bean 3.引入 tx 命名空间xmlns:tx="http:... 阅读全文
posted @ 2015-11-30 22:20 jdonson 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: 1.在spring配置文件中引入 tx 命名空间xmlns:tx="http://www.springframework.org/schema/tx"2.配置事务管理器 3.启用事务注解4.在相应的业务代码方法上方加 @Transactional 表明此方法受事务管理/... 阅读全文
posted @ 2015-11-30 22:19 jdonson 阅读(1403) 评论(0) 推荐(0) 编辑