【发布时间】:2021-11-17 19:41:21
【问题描述】:
我正在尝试公开 3 个端点:
actuator/health/livenessactuator/health/readinessactuator/startup
添加management.endpoint.health.probes.enabled=true
我的application.properties 适用于 1. 和 2。在这种情况下,我收到信息消息““在基本路径 '/actuator' 下暴露 2 个端点”。
仅使用 management.endpoints.web.exposure.include=startup 也不起作用。我收到信息消息“”在基本路径'/执行器'下暴露 1 个端点”。
如何公开 3r 端点?
我已经将BufferingApplicationStartup 用作ApplicationStartup,并在测试时同时使用GET 和POST 来请求执行器/启动。
【问题讨论】:
标签: spring spring-boot-actuator health-check