【问题标题】:How to enable an endpoint in Spring Actuator 1.4.5如何在 Spring Actuator 1.4.5 中启用端点
【发布时间】:2019-05-06 20:47:54
【问题描述】:

我们运行 Spring boot 1.4.5 和 Spring Cloud Config 1.1.0

我想在 application.properties 中启用端点 /actuator/refresh

在 Spring 的教程中说我应该使用这个属性:

management.endpoints.web.exposure.include=*

但是我的 spring boot 版本不支持这个属性(教程 spring boot 版本是 2.0.5)。

我应该使用什么属性?

【问题讨论】:

标签: spring-boot spring-boot-actuator spring-cloud-config


【解决方案1】:

如果在属性或 yaml 文件中按 ctrl + 空格,您是否能够自动完成属性? (然后你应该看到它,或者类似的东西)

【讨论】:

    【解决方案2】:

    解决方案: 显然我需要的属性是:

    endpoints.refresh.enabled=true
    

    工作就像一个魅力。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-01
      • 1970-01-01
      • 2016-06-01
      • 2015-02-22
      • 2020-09-15
      • 2015-08-30
      • 1970-01-01
      • 2016-09-07
      相关资源
      最近更新 更多