catch到的异常是无法回滚的,解决方法:
1.在catch中手动抛出异常类Exception.class
2.在catch中手动回滚事务:
添加TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
catch到的异常是无法回滚的,解决方法:
1.在catch中手动抛出异常类Exception.class
2.在catch中手动回滚事务:
添加TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();