SpringBoot事务

@EnableTransactionManagement
Spring Boot 使用事务非常简单,首先使用注解 @EnableTransactionManagement 开启事务支持后,
然后在访问数据库的Service方法上添加注解 @Transactional 便可。
原文地址:https://www.cnblogs.com/YangBinChina/p/13785243.html