@Configuration @ConditionalOnClass(value={com.mongodb.reactivestreams.client.MongoClient.class,org.springframework.data.mongodb.repository.ReactiveMongoRepository.class}) @ConditionalOnMissingBean(value={org.springframework.data.mongodb.repository.support.ReactiveMongoRepositoryFactoryBean.class,org.springframework.data.mongodb.repository.config.ReactiveMongoRepositoryConfigurationExtension.class}) @ConditionalOnProperty(prefix="spring.data.mongodb.reactive-repositories", name="enabled", havingValue="true", matchIfMissing=true) @Import(value=org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfigureRegistrar.class) public class MongoReactiveRepositoriesAutoConfiguration extends Object
Auto-configuration
for Spring Data's Mongo Reactive
Repositories.
Activates when there is no bean of type
ReactiveMongoRepositoryFactoryBean
configured in the context, the Spring Data Mongo ReactiveMongoRepository
type
is on the classpath, the ReactiveStreams Mongo client driver API is on the classpath,
and there is no other configured ReactiveMongoRepository
.
Once in effect, the auto-configuration is the equivalent of enabling Mongo repositories
using the EnableReactiveMongoRepositories
annotation.
EnableReactiveMongoRepositories
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.