SpringBoot事务回滚

//class上加@Transactional注解
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();

你可能感兴趣的:(spring,spring,boot,java)