@Transactional遇到try;

2022-08-17 11:29:41

try catch的情况

如果类或方法中加了@Transactional遇到try catch情况,需要在catch中抛出异常

try {         
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException();
        }
  • 作者:在你之后
  • 原文链接:https://blog.csdn.net/qq_39517116/article/details/116781287
    更新时间:2022-08-17 11:29:41