Class MongoAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.mongodb.client.MongoClient.class)
@EnableConfigurationProperties(MongoProperties.class)
@ConditionalOnMissingBean(type="org.springframework.data.mongodb.MongoDatabaseFactory")
public class MongoAutoConfiguration
extends Object
Auto-configuration
for Mongo.- Since:
- 1.0.0
- Author:
- Dave Syer, Oliver Gierke, Phillip Webb, Mark Paluch, Stephane Nicoll, Scott Frederick
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.client.MongoClient
mongo
(ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers, com.mongodb.MongoClientSettings settings)
-
Constructor Details
-
MongoAutoConfiguration
public MongoAutoConfiguration()
-
-
Method Details
-
mongo
@Bean @ConditionalOnMissingBean(com.mongodb.client.MongoClient.class) public com.mongodb.client.MongoClient mongo(ObjectProvider<MongoClientSettingsBuilderCustomizer> builderCustomizers, com.mongodb.MongoClientSettings settings)
-