@Configuration @ConditionalOnClass(value=com.mongodb.Mongo.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() |
@PreDestroy public void close()
@Bean @ConditionalOnMissingBean public com.mongodb.Mongo mongo() throws UnknownHostException
UnknownHostException
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.