2019年3月15日

spring boot 事物简单使用

摘要: spring boot 事物: 1.在启动类加注解 :@EnableTransactionManagement 2.在需要事物的方法上添加注解:@Transactional(rollbackFor = Exception.class) spring事物配置: 一 . 注解方式: 1. xxx.xml 阅读全文

posted @ 2019-03-15 17:19 Mr-xt 阅读(353) 评论(0) 推荐(0) 编辑

导航