原因分析见:https://www.cnblogs.com/pjjlt/p/10926398.html

解决办法:catch中手动回滚。

try {
           
}catch (Exception e){
   //手动回滚
   TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
}

 

相关文章:

  • 2021-09-17
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-01-07
  • 2021-03-31
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-08-29
  • 2021-06-28
  • 2021-12-30
相关资源
相似解决方案