@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=com.mongodb.client.MongoClient.class) @EnableConfigurationProperties(value=MongoProperties.class) @ConditionalOnMissingBean(type="org.springframework.data.mongodb.MongoDatabaseFactory") public class MongoAutoConfiguration extends Object
Auto-configuration
for Mongo.Constructor and Description |
---|
MongoAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoClient |
mongo(ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers,
com.mongodb.MongoClientSettings settings) |
@Bean @ConditionalOnMissingBean(value=com.mongodb.client.MongoClient.class) public com.mongodb.client.MongoClient mongo(ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers, com.mongodb.MongoClientSettings settings)