【发布时间】:2021-11-05 11:46:09
【问题描述】:
我将compileOnly 'org.springframework.boot:spring-boot-starter-actuator' 添加到我的build.gradle,然后在Gradle 工具窗口中右键单击该项目并选择Refresh Gradle Dependencies。然后我将endpoints.health.enabled=true 添加到我的application.properties。
当我启动我的应用程序并在 URL http://localhost:9000/application/health 上执行 GET 时,我得到以下信息:
{
"timestamp": "2021-11-05T11:40:13.663+00:00",
"path": "/application/",
"status": 404,
"error": "Not Found",
"message": null,
"requestId": "c8352103-2"
}
启用执行器时我错过了什么吗?
【问题讨论】:
-
stackoverflow.com/questions/55877188/…此链接可能会有所帮助
标签: java spring-boot spring-boot-actuator