@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(MongoProperties properties,
Environment environment,
ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers,
ObjectProvider<com.mongodb.MongoClientSettings> settings) |
@Bean @ConditionalOnMissingBean(value=com.mongodb.client.MongoClient.class) public com.mongodb.client.MongoClient mongo(MongoProperties properties, Environment environment, ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers, ObjectProvider<com.mongodb.MongoClientSettings> settings)