//避免事务部分生效引发数据垃圾

try {
……

}catch(Exception e) {
e.printStackTrace();
//手动开启事务回滚
 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
}

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-09-17
  • 2021-10-07
  • 2020-05-11
  • 2020-07-22
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2022-02-18
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2018-09-06
相关资源
相似解决方案