mybatis-MYSQL+MYBATIS连接池 java.io.eof
MYSQL + MYBATIS 初步判定是MYSQL 8小时自动断开连接,MYBATIS 启动了连接池导致
连接池那边已经做了检验sql 不知道为什么依然出现问题,求解决方案!
ps:不用连接池观察2天没问题
java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2926)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3344)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3334)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3774)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2541)
at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4882)
下一篇: 重拾java基础(七):匿名对象总结
推荐阅读
-
详解Spring Boot Mysql 版本驱动连接池方案选择
-
MySQL中间件之ProxySQL(5):线程、线程池、连接池
-
.NET 数据库连接池
-
.net数据库连接池配置技巧(默认值)
-
Swoole Redis 连接池的实现
-
Python数据库连接池DBUtils
-
配置c3p0-config.xml数据库连接池,jdbcurl配置项报错Type The reference to entity "useUnicode" must end with the ';' delimiter.
-
用sqlalchemy构建Django连接池的实例
-
JSP Spring中Druid连接池配置详解
-
springboot activiti 整合项目框架源码 druid 数据库连接池 shiro 安全框架