Closed
Description
The documentation suggest the datasource health endpoint (actuator) can be enabled/disabled using the key datasource
: management.health.datasource.enabled
but I think it should be db
: management.health.db.enabled
which was the case for Spring Boot 2.3.x and I don't think it's changed. The current version of DataSourceHealthContributorAutoConfiguration
has the annotation @ConditionalOnEnabledHealthIndicator("db")
which has the key db
.
Current docs: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-health