摘要: 1. 导入驱动,连接池,jdbc和AOP的依赖 2. 编写配置类,@EnableTransactionManagement这个注解一定要开启 3. Service类和Dao类 4. 测试类 5 结果 出异常就回滚,否则入库。 阅读全文
posted @ 2018-12-19 11:36 在谷歌上百度 阅读(287) 评论(0) 推荐(0) 编辑