mybatis SQLException:关闭的连接

org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.sql.SQLException: 关闭的连接

The error may exist in //*Mapper.xml

The error may involve **Mapper.selectPageByExample

The error occurred while executing a query

SQL: 此处为查询语句

Cause: java.sql.SQLException: 关闭的连接

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:77)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:69)
at org.apache.ibatis.binding.MapperMethod.executeForList(MapperMethod.java:85)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:65)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:38)
at $Proxy155.selectPageByExampleCache(Unknown Source)

Mapper.xml,这个文件配置的有问题

不是配置文件的问题,这个错误不是一直报的。一般是周一,因为周末几乎无人访问系统,周一访问时就会出现这个问题。