Can you configure the property management.health.consul.enabled
via a property source that is loaded after bootstrap.yml
?.
Asked
Active
Viewed 1,063 times
0

Michael McFadyen
- 2,675
- 11
- 25
-
What problem are you having? – spencergibb Jul 03 '18 at 17:21
-
when you add that property to your application.properties or an equivalent property source, the value is not used. The only way I could get the consul health check disabled is by adding the property to bootstrap.yml – Michael McFadyen Jul 04 '18 at 14:57
1 Answers
-1
See also this issue. With Spring Boot 2.3.7.RELEASE I can enable/disable the Consul health indicator via property management.health.consul.enabled
without any issues.

MZerau
- 1
- 1
-
the issue linked just confirms the behaviour I was already seeing. The question was around being able to enable/disable the health check in the application.properties/yml. I also believe that this is still not possible due to the order at which the consul health indicator bean is configured. – Michael McFadyen Jan 03 '21 at 18:20
-
So you still see this behavior? Then please add more details about your setup as it works with a recent Spring Boot version as I wrote. – MZerau Jan 04 '21 at 12:35