Class MongoHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<HealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<MongoHealthIndicator,org.springframework.data.mongodb.core.MongoTemplate>
org.springframework.boot.actuate.autoconfigure.data.mongo.MongoHealthContributorAutoConfiguration
@AutoConfiguration(after={MongoAutoConfiguration.class,MongoDataAutoConfiguration.class,MongoReactiveHealthContributorAutoConfiguration.class})
@ConditionalOnClass(org.springframework.data.mongodb.core.MongoTemplate.class)
@ConditionalOnBean(org.springframework.data.mongodb.core.MongoTemplate.class)
@ConditionalOnEnabledHealthIndicator("mongo")
public class MongoHealthContributorAutoConfiguration
extends CompositeHealthContributorConfiguration<MongoHealthIndicator,org.springframework.data.mongodb.core.MongoTemplate>
- Since:
- 2.1.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmongoHealthContributor
(Map<String, org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration
createComposite
Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
MongoHealthContributorAutoConfiguration
public MongoHealthContributorAutoConfiguration()
-
-
Method Details
-
mongoHealthContributor
@Bean @ConditionalOnMissingBean(name={"mongoHealthIndicator","mongoHealthContributor"}) public HealthContributor mongoHealthContributor(Map<String, org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates)
-