数据库链接已关闭

1
2
3
4
5
6
7

Database access problem. Killing off this connection and all remaining connections
in the connection pool. SQL State = 08S01

org.springframework.transaction.CannotCreateTransactionException:
Could not open JPA EntityManager for transaction; nested exception is javax.persistence.
PersistenceException: java.sql.SQLException: Connection is closed!

原因: DBA数据库对连接时间比程序中的连接时间敏感得多、导致数据库连接在数据库端被关闭