Configuration
All Actuator endpoints are disabled by default. Enable them individually — or globally — inapplication.yml. Each endpoint can also be mounted at a custom path.
application.yml
Available Endpoints
Querying an Endpoint
Once an endpoint is enabled and the application is running, query it with a standard HTTP request:Custom Health Checks with HealthIndicator
The/health endpoint aggregates the status reported by every bean that implements HealthIndicator and is annotated with #[HealthInformer]. This makes it straightforward to add health checks for databases, message brokers, external APIs, or any other dependency.
Implement the health(): Health method and return one of the Health factory methods for the appropriate state:
DatabaseHealthIndicator.php
You can register as many
#[HealthInformer] beans as you need. The /health endpoint combines all of their statuses: if any single indicator reports DOWN, the overall status is DOWN.Custom Application Info with InfoContributor
The/info endpoint is populated by beans that implement InfoContributor and are annotated with #[InfoInformer]. Use it to surface metadata such as the application name, version, build timestamp, or Git revision.
Implement the contribute(InfoBuilder $info): void method and call $info->withDetail(key, value) for each piece of information you want to expose. The method is chainable.
ApplicationInfoContributor.php