相关疑难解决方法(0)

JDBC的连接池选项:DBCP与C3P0

什么是可用于Java/JDBC的最佳连接池库?

我正在考虑2个主要候选人(免费/开源):

我在博客和其他论坛上阅读了很多关于它们的内容,但无法做出决定.

这两个是否有任何相关的替代方案?

java connection-pooling jdbc c3p0 apache-commons-dbcp

311
推荐指数
10
解决办法
20万
查看次数

在spring-boot jpa hibernate中,在> 4 <24之后连接到Db

我有一个使用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)

java mysql jpa spring-boot

42
推荐指数
1
解决办法
3万
查看次数