什么是可用于Java/JDBC的最佳连接池库?
我正在考虑2个主要候选人(免费/开源):
我在博客和其他论坛上阅读了很多关于它们的内容,但无法做出决定.
这两个是否有任何相关的替代方案?
我有一个使用spring-boot,jpa-hiberanate与mysql的应用程序.我收到此错误日志
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 56,006,037 milliseconds ago. The last packet sent successfully to the server was 56,006,037 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
Run Code Online (Sandbox Code Playgroud)
这是我的application.properties
# DataSource settings: set here configurations for the database …Run Code Online (Sandbox Code Playgroud)