spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.96k stars 1.29k forks source link

Health indicator configuration property is documented incorrectly #2457

Closed blackr1234 closed 1 month ago

blackr1234 commented 2 months ago

The issue

According to the Health Indicator document page,

You can disable the Health Indicator by setting management.health.config.enabled=false.

In reality, the actual configuration property is spring.cloud.config.server.health.enabled=false. As per my testing, only this configuration property will skip the configServer health component, meaning that it will not call EnvironmentRepository#findOne.

Please help update the documentation accordingly, thanks.

ryanjbaxter commented 1 month ago

Using management.health.config.enabled=false worked for me. Can you provide a sample?

spring-cloud-issues commented 1 month ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-cloud-issues commented 1 month ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.