Skip to content

Documentation has wrong key for DataSourceHealthIndicator #26268

Closed
@roberthunt

Description

@roberthunt

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions