小编kum*_*mar的帖子

JDBCExceptionReporter - SQL 错误:0,SQLState:08001

我使用 spring 、 hibernate 和 Jaxb 做了一个 Java 应用程序。

JDBCExceptionReporter - SQL Error: 0, SQLState: 08001
JDBCExceptionReporter - Could not create connection to database server. Attempted reconnect 3 times. Giving up.
JDBCExceptionReporter - SQL Error: 0, SQLState: 08001
JDBCExceptionReporter - Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Run Code Online (Sandbox Code Playgroud)

当我尝试通过循环多次连接数据库时,出现上述错误。它适用于最多 50 个请求,但当循环超过 50 个时会出现错误。

我使用java 1.7和Tomcat 7.0

java mysql tomcat hibernate

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

标签 统计

hibernate ×1

java ×1

mysql ×1

tomcat ×1