【发布时间】:2019-03-04 05:44:31
【问题描述】:
我正在为我的project 使用 Spring boot Actuator API,它有一个健康检查端点,并通过以下方式启用它:
management.endpoints.web.base-path=/
management.endpoints.web.path-mapping.health=healthcheck
提到here
现在我想在上面/healthcheck 的状态失败时在我的应用程序日志文件中启用日志,并从该端点打印整个响应。
实现这一目标的正确方法是什么?
【问题讨论】:
标签: java spring-boot logging spring-boot-actuator