1. https://jingyan.baidu.com/article/3a2f7c2e27d51b26afd611ff.html
2. https://blog.csdn.net/lee_star1/article/details/71730107
需抛出RuntimeException错误
1throw new RuntimeException("回滚"); 2 3try { 4 //业务逻辑 5} catch (Exception e) { 6 task = false; 7 e.printStackTrace(); 8 throw new RuntimeException("数据插入失败,回滚"); 9}