解决方法:
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
如果觉得《The driver has not received any packets from the server》对你有帮助,请点赞、收藏,并留下你的观点哦!