Spring Boot事物手動回滾

在Dao層的方法上添加 @Transactional 當要回滾時在代碼中添加 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();web
相關文章
相關標籤/搜索