Spring事物用代码的方式回滚 直接调用下面的代码即可回滚 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();