在程序运行过程中出现:org.springframework.transaction.UnexpectedRollbackException:Transaction rolled back because it has been marked rollback-only
抛出该异常的原因,方法A调用了方法B, 方法A有事务,方法B也有事务,在方法A中用try...catch...包住了方法B,当B中throw异常时,就会出现题目中的异常。
在程序运行过程中出现:org.springframework.transaction.UnexpectedRollbackException:Transaction rolled back because it has been marked rollback-only
抛出该异常的原因,方法A调用了方法B, 方法A有事务,方法B也有事务,在方法A中用try...catch...包住了方法B,当B中throw异常时,就会出现题目中的异常。