码迷,mamicode.com
首页 > 数据库 > 详细

tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,

时间:2018-06-04 14:28:54      阅读:797      评论:0      收藏:0      [点我收藏+]

标签:IV   ted   while   select   需要   expec   not   时报   sele   

需要在配置文件里加上下面就ok了

<property name=”minEvictableIdleTimeMillis” value=”1800000″ />
<property name=”numTestsPerEvictionRun” value=”3″ />
<property name=”testOnBorrow” value=”true” />
<property name=”testWhileIdle” value=”true” />
<property name=”testOnReturn” value=”true” />
<property name=”validationQuery” value=”SELECT 1″ />

tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,

标签:IV   ted   while   select   需要   expec   not   时报   sele   

原文地址:https://www.cnblogs.com/fan-yuan/p/9132577.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!