集成mybatis那块不就是么?
https://github.com/leechenxiang/imooc-springboot-starter
出现的异常得属于RuntimeException,才会触发事务的回滚,自定义异常也得继承RuntimeException