try{ .......你带逻辑代码 }catch(Exception e){ e.printStatckTrace(); TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); //代码执行事务回滚 }
转载于:https://my.oschina.net/fdhay/blog/690268
try{ .......你带逻辑代码 }catch(Exception e){ e.printStatckTrace(); TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); //代码执行事务回滚 }
转载于:https://my.oschina.net/fdhay/blog/690268