The driver has not received any packets from the server

解决方法:

     jdbc的url添加参数:

jdbc.url=jdbc:mysql://localhost:3306/totosea?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false

  在mysql的安装目录下找到my.ini中添加:将mysql回收空闲连接的时间变长,mysql默认回收时间是8小时

wait_timeout=31536000
interactive_timeout=31536000
posted @ 2017-09-19 10:19  简笔话_Golden  阅读(2101)  评论(0编辑  收藏  举报