mybatis连接postgressql出现连接超时中断错误

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Jun 24 11:11:20 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
### Error querying database. Cause: org.postgresql.util.PSQLException: This connection has been closed. ### The error may exist in URL [jar:file:/data/jar_app/monitor/oasys.jar!/BOOT-INF/classes!/mappers/soft-mapper.xml] ### The error may involve cn.gson.oasys.mappers.SoftMapper.getComPiratedSoftware_COUNT ### The error occurred while executing a query ### Cause: org.postgresql.util.PSQLException: This connection has been closed. ; SQL []; This connection has been closed.; nested exception is org.postgresql.util.PSQLException: This connection has been closed.
 
解决方案:
原文地址:https://www.cnblogs.com/xyyou/p/11076086.html