【发布时间】:2019-09-23 08:06:45
【问题描述】:
我正在为我的应用程序实现执行器和 Spring Boot Admin。当我向 /actuators 发送请求时,我得到除了缓存之外的所有执行器点。
我尝试在 application.yaml 中开启/关闭缓存健康监控,但没有成功。
cache:
hazelcast:
instance_name: hazelcast-cache
health:
monitoring:
level: OFF
application.yaml:
web:
exposure:
include: "*"
build.gradle:
compile group: 'de.codecentric', name: 'spring-boot-admin-starter-client', version: '2.0.6'```
【问题讨论】:
-
您包含的 application.yaml 似乎不正确,我认为您缺少其中的“management.endpoints”部分。该属性的完整路径是:management.endpoints.web.exposure.include
标签: java spring spring-boot spring-boot-actuator spring-boot-admin