@transactional注解,报错后数据库操作回滚失败解决
1.https://jingyan.baidu.com/article/3a2f7c2e27d51b26afd611ff.html
2.https://blog.csdn.net/lee_star1/article/details/71730107
需抛出RuntimeException错误
必须是:
throw new RuntimeException("回滚");
例如:
...
原创
2019-11-08 12:01:21 ·
1226 阅读 ·
0 评论