@Configuration @ConditionalOnClass(value=org.springframework.data.mongodb.core.MongoTemplate.class) @ConditionalOnBean(value=org.springframework.data.mongodb.core.MongoTemplate.class) @ConditionalOnEnabledHealthIndicator(value="mongo") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value={MongoAutoConfiguration.class,MongoDataAutoConfiguration.class,MongoReactiveHealthIndicatorAutoConfiguration.class}) public class MongoHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<MongoHealthIndicator,org.springframework.data.mongodb.core.MongoTemplate>
Constructor and Description |
---|
MongoHealthIndicatorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
mongoHealthIndicator(Map<String,org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates) |
createHealthIndicator, createHealthIndicator
public MongoHealthIndicatorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name="mongoHealthIndicator") public HealthIndicator mongoHealthIndicator(Map<String,org.springframework.data.mongodb.core.MongoTemplate> mongoTemplates)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.