Is "health.config.enabled" still being processed, and where?

1.4k Views Asked by At
  • Is the property "health.config.enabled" still valid and being processed in current Spring Cloud?

  • If yes, where in the code it is being done?

    The property is in the current official documentation and has worked well for me so far (in cloud clients).

    But as a whole string, it cannot be found anywhere in the current source code (besides the doc source).

    For me as a beginner, it was easy to find in the old version of ConfigClientAutoConfiguration.java

    Recent version of ConfigClientAutoConfiguration.java does not contain that whole property name, although I guess it's still being processed but in a more abstract way that I don't understand yet. Thus I'd appreciate even a hint in the form of "what used to be done on line "@ConditionalOnProperty(value = "health.config.enabled", matchIfMissing = true)" before is now roughly done on line XY".

Thanks.

1

There are 1 best solutions below

2
spencergibb On

It is replaced by @ConditionalOnEnabledHealthIndicator("config") (see here).

From the javadoc for that annotation

Blockquote @Conditional that checks whether a default health indicator is enabled. Matches if the value of the management.health.<name>.enabled

So the new property is management.health.config.enabled