JpaSystemException v TransactionTimedOutException超时

时间:2018-10-01 02:48:00

标签: java spring

我试图了解两种例外之间的区别

1: org.springframework.orm.jpa.JpaSystemException: transaction timeout expired; nested exception is org.hibernate.TransactionException: transaction timeout expired

似乎在超过@Transactional(... timeout = n)值时发生,并且

2: org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was <date>

我重试了一次多次(1)超时的交易,从而引起了这种情况。

0 个答案:

没有答案