@Configuration(proxyBeanMethods=false) @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}) @ConditionalOnRepositoryType(store="mongodb", type=REACTIVE) @Import(value=org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesRegistrar.class) @AutoConfigureAfter(value=MongoReactiveDataAutoConfiguration.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 © 2021 Pivotal Software, Inc.. All rights reserved.