Class MongoReactiveRepositoriesAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration

@AutoConfiguration(after=MongoReactiveDataAutoConfiguration.class) @ConditionalOnClass({com.mongodb.reactivestreams.client.MongoClient.class,org.springframework.data.mongodb.repository.ReactiveMongoRepository.class}) @ConditionalOnMissingBean({org.springframework.data.mongodb.repository.support.ReactiveMongoRepositoryFactoryBean.class,org.springframework.data.mongodb.repository.config.ReactiveMongoRepositoryConfigurationExtension.class}) @ConditionalOnRepositoryType(store="mongodb", type=REACTIVE) @Import(org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesRegistrar.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.

Since:
2.0.0
Author:
Mark Paluch
See Also:
  • EnableReactiveMongoRepositories
  • Constructor Details

    • MongoReactiveRepositoriesAutoConfiguration

      public MongoReactiveRepositoriesAutoConfiguration()