如何在Spring Actuator 1.4.5中启用端点

时间:2018-12-05 10:03:35

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

我们运行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)。

我应该使用什么属性?

2 个答案:

答案 0 :(得分:0)

如果在属性或yaml文件中按Ctrl +空格键,是否能够自动完成属性设置? (那么您应该会看到它,或者类似的东西)

答案 1 :(得分:0)

解决方案: 显然我需要的财产是:

endpoints.refresh.enabled=true

像魅力一样工作。