@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.data.mongodb.core.MongoTemplate.class) @ConditionalOnBean(value=org.springframework.data.mongodb.core.MongoTemplate.class) @ConditionalOnEnabledHealthIndicator(value="mongo") @AutoConfigureAfter(value={MongoAutoConfiguration.class,MongoDataAutoConfiguration.class,MongoReactiveHealthContributorAutoConfiguration.class}) public class MongoHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<MongoHealthIndicator,org.springframework.data.mongodb.core.MongoTemplate>
Constructor and Description |
---|
MongoHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthContributor |
mongoHealthContributor(Map<String,org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates) |
createComposite
createContributor, createIndicator
public MongoHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name={"mongoHealthIndicator","mongoHealthContributor"}) public HealthContributor mongoHealthContributor(Map<String,org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.