@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=com.mongodb.MongoClient.class) @EnableConfigurationProperties(value=MongoProperties.class) @ConditionalOnMissingBean(type="org.springframework.data.mongodb.MongoDbFactory") public class MongoAutoConfiguration extends Object
Auto-configuration
for Mongo.Constructor and Description |
---|
MongoAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.mongodb.MongoClient |
mongo(MongoProperties properties,
ObjectProvider<com.mongodb.MongoClientOptions> options,
Environment environment) |
@Bean @ConditionalOnMissingBean(type={"com.mongodb.MongoClient","com.mongodb.client.MongoClient"}) public com.mongodb.MongoClient mongo(MongoProperties properties, ObjectProvider<com.mongodb.MongoClientOptions> options, Environment environment)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.