Merge pull request #819 from cdupuis/health-indicator

Rework HealthIndicator support
This commit is contained in:
Christian Dupuis
2014-05-08 16:40:44 +02:00
16 changed files with 680 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
= Spring Boot Reference Guide
Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson; Marcel Overdijk;
Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson; Marcel Overdijk; Christian Dupuis;
:doctype: book
:toc:
:toclevels: 4

View File

@@ -162,9 +162,13 @@ To provide custom health information you can register a Spring bean that impleme
}
----
Spring Boot also provides a
{sc-spring-boot-actuator}/health/SimpleHealthIndicator.{sc-ext}[`SimpleHealthIndicator`]
implementation that attempts a simple database test.
Spring Boot provides a
{sc-spring-boot-actuator}/health/SimpleDatabaseHealthIndicator.{sc-ext}[`SimpleDatabaseHealthIndicator`]
implementation that attempts a simple database test as well as implementations for
Redis and MongoDB.
Spring Boot adds the `HealthIndicator` instances automatically if beans of type `DataSource`,
`MongoTemplate` or `RedisConnectionFactory` are present in the `ApplicationContext`.