-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
I am just upgrading our application to Spring Boot 2.2.0. I am basically following the release notes at:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes
As far as I can see, there is only one behavioral change missing in the documentation.
In my Spring Boot 2.1 application, I had disabled the heath endpoint defaults with:
management.health.defaults.enabled=false
This disabled all health indicators apart from from the ApplicationHealthIndicator.
Now with Sprint Boot 2.2, the same endpoint returns a 404 HTTP response. My other applications still work the same because they additionally define some custom health indicators.
It seems to be related to the following fix:
#17926
It is now always added. But it seems disabled with the defaults. According the HealthContributorAutoConfigurationTests the behavior was changed intentionally, and as such it should be added to the release notes IMHO.