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

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

时间:2016-07-20 19:39:38      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

需要在配置文件里加上下面就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″ />

http://blog.csdn.net/zhq426/article/details/9787071/

 

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

标签:

原文地址:http://www.cnblogs.com/softidea/p/5689344.html

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