整合MyBatis - 引入事务执行回滚
请结合springboot学习教程项目github地址 https://github.com/heng1234/spring-boot_one来理解
Service上加上事务注解
@Transactional(propagation = Propagation.xxx) 例如
@Transactional(propagation = Propagation.REQUIRED)
请结合springboot学习教程项目github地址 https://github.com/heng1234/spring-boot_one来理解
Service上加上事务注解
@Transactional(propagation = Propagation.xxx) 例如
@Transactional(propagation = Propagation.REQUIRED)