diff --git a/spring-boot-actuator/pom.xml b/spring-boot-actuator/pom.xml
index 37338e0b8b..1ecb5e8bc6 100644
--- a/spring-boot-actuator/pom.xml
+++ b/spring-boot-actuator/pom.xml
@@ -76,6 +76,11 @@
spring-data-redis
true
+
+ org.springframework.data
+ spring-data-mongodb
+ true
+
org.springframework.security
spring-security-web
diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java
index c06da53e27..5d588c7db7 100644
--- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java
+++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java
@@ -20,8 +20,6 @@ import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
-import javax.sql.DataSource;
-
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.endpoint.AutoConfigurationReportEndpoint;
@@ -38,10 +36,6 @@ import org.springframework.boot.actuate.endpoint.RequestMappingEndpoint;
import org.springframework.boot.actuate.endpoint.ShutdownEndpoint;
import org.springframework.boot.actuate.endpoint.TraceEndpoint;
import org.springframework.boot.actuate.endpoint.VanillaPublicMetrics;
-import org.springframework.boot.actuate.health.CompositeHealthIndicator;
-import org.springframework.boot.actuate.health.HealthIndicator;
-import org.springframework.boot.actuate.health.SimpleHealthIndicator;
-import org.springframework.boot.actuate.health.VanillaHealthIndicator;
import org.springframework.boot.actuate.metrics.reader.MetricReader;
import org.springframework.boot.actuate.metrics.repository.InMemoryMetricRepository;
import org.springframework.boot.actuate.trace.InMemoryTraceRepository;
@@ -64,20 +58,15 @@ import org.springframework.web.servlet.handler.AbstractHandlerMethodMapping;
/**
* {@link EnableAutoConfiguration Auto-configuration} for common management
* {@link Endpoint}s.
- *
+ *
* @author Dave Syer
* @author Phillip Webb
* @author Greg Turnquist
+ * @author Chiristian Dupuis
*/
@Configuration
public class EndpointAutoConfiguration {
- @Autowired(required = false)
- private HealthIndicator extends Object> healthIndicator;
-
- @Autowired(required = false)
- private Map dataSources;
-
@Autowired
private InfoPropertiesConfiguration properties;
@@ -98,28 +87,8 @@ public class EndpointAutoConfiguration {
@Bean
@ConditionalOnMissingBean
- public HealthEndpoint> healthEndpoint() {
- if (this.healthIndicator == null) {
- this.healthIndicator = createHealthIndicator();
- }
- return new HealthEndpoint