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