Spring Boot执行器-数据库关闭时,运行状况检查将响应“ 502代理错误”

时间:2019-07-02 12:20:30

标签: spring-boot spring-boot-actuator

正在Apache服务器后面运行spring boot应用程序。启用执行器/运行状况检查。数据库启动时其响应。但是当db在一段时间后关闭时,浏览器的错误信息就会消失。

Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /actuator/health.

Reason: Error reading from remote server

httpd.conf

ProxyPass /actuator/health https://<server>:<port>/actuator/health
# dont have proxypassreverse

为什么会这样。我曾经断开Internet连接以重现数据库连接中断的情况。

0 个答案:

没有答案