UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

NO IMAGE

首先應該跟蹤程式碼,肯定是哪裡丟擲異常了;如果這個異常是在自己的控制範圍內,那麼再考慮spring事務