Druid 使用 druid连接池
程序员文章站
2022-03-02 16:56:49
...
druid链接之后不释放,导致链接数据库超时,由于原来使用的是1.016的版本,需要升级到最新的版本,这个是druid的一个bug。升级最新版本解决问题
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 490 milliseconds ago. The last packet sent successfully to the server was 489 milliseconds ago.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 490 milliseconds ago. The last packet sent successfully to the server was 489 milliseconds ago.
下一篇: 面粉+石灰 我的黑名单