@Configuration @ConditionalOnClass(value={, }) @ConditionalOnMissingBean(value= ) @Import(value=org.springframework.boot.autoconfigure.data.MongoRepositoriesAutoConfigureRegistrar.class) public class MongoRepositoriesAutoConfiguration extends Object
Auto-configuration
for Spring Data's Mongo
Repositories.
Activates when there is no bean of type
org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean
configured in the context, the Spring Data Mongo
org.springframework.data.mongodb.repository.MongoRepository
type is on the
classpath, the Mongo client driver API is on the classpath, and there is no other
configured org.springframework.data.mongodb.repository.MongoRepository
.
Once in effect, the auto-configuration is the equivalent of enabling Mongo repositories
using the
org.springframework.data.mongodb.repository.config.EnableMongoRepositories
annotation.
EnableMongoRepositories
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.