springboot 中事務坑

啓動類上加@EnableTransactionManagement  然後在方法上加 @Transactional(rollbackFor = Exception.class) 即可 坑點,調用 @Transactional(rollbackFor = Exception.class)註解方法的方法不能在一個類中 像這樣
相關文章
相關標籤/搜索