After adding @Transactional tag did not roll back abnormal

@Transaction is rolled back by throwing the acquisition method in Runtime exception.

If you use try catch exception handling code is captured, the outer layer can not catch the exception, it will not be rolled back.

so: https: //www.cnblogs.com/zjfjava/p/9963958.html, this tells us throw runtime exception in the catch

       https://www.cnblogs.com/GH0522/p/9596704.html, this method is a manual rollback.

Guess you like

Origin www.cnblogs.com/friday92/p/11031754.html