【发布时间】:2019-06-26 10:57:56
【问题描述】:
通过添加 spring-boot-starter-actuator 作为依赖项来使用 Spring Boot 2 执行器。我将服务器端口设置为 9090,将基本上下文设置为 /api。启动 spring boot 应用程序后,我尝试点击健康 url,如
local-host:9090/application/health
local-host:9090/actuator/health
local-host:9090/api/application/health
local-host:9090/api/actuator/health
但没有成功
我试图把配置像
endpoints.actuator.enabled=true
endpoints.logfile.enabled=true
management.endpoints.web.exposure.include=*
谁能帮助我更好地理解使用执行器的方法。
【问题讨论】: