SpringBoot v2.5.1
我希望所有执行器端点(在文档中描述)都可用。在docs之后,添加了执行器启动器依赖项和属性,但大多数端点不可用(HTTP 404)。
唯一可用的端点是GET /actuator/health
,但它显示了无用的信息:{"status": "UP"}
添加属性management.endpoints.enabled-by-default=true
。
添加依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
的结果GET /actuator
{
"_links": {
"self": {
"href": "http://localhost:9999/actuator",
"templated": false
},
"health-path": {
"href": "http://localhost:9999/actuator/health/{*path}",
"templated": true
},
"health": {
"href": "http://localhost:9999/actuator/health",
"templated": false
}
}
}
启用执行器端点的最小设置是什么?