【问题标题】:Cache actuator endpoint not showing缓存执行器端点未显示
【发布时间】: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


【解决方案1】:

问题是spring boot版本,我的项目是2.0.6。迁移到最新版本后,一切都在那里。

【讨论】:

    猜你喜欢
    • 2021-08-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-20
    • 1970-01-01
    • 2020-07-08
    • 2019-11-12
    • 2014-05-04
    相关资源
    最近更新 更多