1. 检查mysql是否是innodb?2. 自定义异常;3. throw new RuntimeException();4. 在try catch中catch中手动回滚: TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();