Spring cloud 为什么房地产价值会发生变化;management.endpoint.health.show details“;在运行时被忽略?

Spring cloud 为什么房地产价值会发生变化;management.endpoint.health.show details“;在运行时被忽略?,spring-cloud,spring-boot-actuator,spring-cloud-consul,Spring Cloud,Spring Boot Actuator,Spring Cloud Consul,我正在使用SpringCloud领事管理我的应用程序的配置(SpringBoot:v2.1.4.RELEASE) 在上传至领事馆的文件“application.yml”中,我对致动器进行了以下配置: management: endpoints: web: exposure: include: "*" endpoint: health: show-details: ALWAYS 这将导致显示关于/执行器/健康端点的详细信息 当我在应

我正在使用SpringCloud领事管理我的应用程序的配置(SpringBoot:v2.1.4.RELEASE) 在上传至领事馆的文件“application.yml”中,我对致动器进行了以下配置:

management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: ALWAYS
这将导致显示关于/执行器/健康端点的详细信息

当我在应用程序运行时将Consor中的此属性更改为值“NEVER”时,会注意到此更改,并刷新此属性,我可以在两个位置进行检查:

1) 日志

2) 端点
/exactor/configprops

                "management.endpoint.health-org.springframework.boot.actuate.autoconfigure.health.HealthEndpointProperties": {
                    "prefix": "management.endpoint.health",
                    "properties": {
                        "showDetails": "NEVER",
                        "roles": []
                    }
                },
问题是,
/exactor/health
端点仍在提供运行状况详细信息,忽略了在运行时对属性“management.endpoint.health.show details”所做的更改


是否应该应用任何其他配置?

仅仅因为您可以在运行时更改值,并不意味着它的使用将受到影响。问题是:考虑到端点“/exactor/configprops”返回此属性的当前值,这是错误还是执行器的期望行为?仅仅因为您在运行时可以更改值并不意味着它的使用将受到影响。问题是:考虑到端点“/exactor/configprops”返回此属性的当前值,这是一个错误还是执行器的期望行为?
                "management.endpoint.health-org.springframework.boot.actuate.autoconfigure.health.HealthEndpointProperties": {
                    "prefix": "management.endpoint.health",
                    "properties": {
                        "showDetails": "NEVER",
                        "roles": []
                    }
                },