【发布时间】:2014-11-21 09:58:18
【问题描述】:
我正在使用 spring-boot 和 oracle 数据库。
在访问http://localhost:8888/health 健康端点时,我得到以下响应:
{"status":"DOWN","error":"org.springframework.dao.RecoverableDataAccessException: ConnectionCallback; SQL []; Closed Connection; nested exception is java.sql.SQLRecoverableException: Closed Connection"}
在搜索上述问题详细信息时,我找到了此链接https://github.com/spring-projects/spring-boot/issues/1303。它详细描述了问题,但非常简短地提到了解决部分。
正如我们在上述来源中看到的那样,这是新状态下的问题。一旦我观察到即使响应返回此异常,应用程序仍会继续将记录插入数据库。
我们如何解决上述异常以及它对正在运行的启动应用程序有什么影响?
【问题讨论】: