异常The last packet sent successfully to the server was 0 milliseconds ago...

来源:互联网 发布:日语翻译哪个软件好 编辑:程序博客网 时间:2024/06/05 21:58

使用阿里的druid包出现有The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

或者单纯使用jdbc提示No operations allowed after connection closed


说明连接太久没用已经被关闭,但是程序仍然在缓冲池里寻找连接


解决方法:
有可能是配置文件写错,或者jdbc驱动包问题
0 0
原创粉丝点击