Class MongoReactiveDataAutoConfiguration

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

@AutoConfiguration(after=MongoReactiveAutoConfiguration.class) @ConditionalOnClass({com.mongodb.reactivestreams.client.MongoClient.class,org.springframework.data.mongodb.core.ReactiveMongoTemplate.class}) @ConditionalOnBean(com.mongodb.reactivestreams.client.MongoClient.class) @EnableConfigurationProperties(MongoProperties.class) @Import(org.springframework.boot.autoconfigure.data.mongo.MongoDataConfiguration.class) public class MongoReactiveDataAutoConfiguration extends Object
Auto-configuration for Spring Data's reactive mongo support.

Registers a ReactiveMongoTemplate bean if no other bean of the same type is configured.

Honors the spring.data.mongodb.database property if set, otherwise connects to the test database.

Since:
2.0.0
Author:
Mark Paluch, Artsiom Yudovin
  • Constructor Details

    • MongoReactiveDataAutoConfiguration

      public MongoReactiveDataAutoConfiguration()
  • Method Details

    • reactiveMongoDatabaseFactory

      @Bean @ConditionalOnMissingBean(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory.class) public org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory(MongoProperties properties, com.mongodb.reactivestreams.client.MongoClient mongo)
    • reactiveMongoTemplate

      @Bean @ConditionalOnMissingBean(org.springframework.data.mongodb.core.ReactiveMongoOperations.class) public org.springframework.data.mongodb.core.ReactiveMongoTemplate reactiveMongoTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory, org.springframework.data.mongodb.core.convert.MongoConverter converter)
    • mappingMongoConverter

      @Bean @ConditionalOnMissingBean(org.springframework.data.mongodb.core.convert.MongoConverter.class) public org.springframework.data.mongodb.core.convert.MappingMongoConverter mappingMongoConverter(org.springframework.data.mongodb.core.mapping.MongoMappingContext context, org.springframework.data.mongodb.core.convert.MongoCustomConversions conversions)
    • dataBufferFactory

    • reactiveGridFsTemplate

      @Bean @ConditionalOnMissingBean(org.springframework.data.mongodb.gridfs.ReactiveGridFsOperations.class) public org.springframework.data.mongodb.gridfs.ReactiveGridFsTemplate reactiveGridFsTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory, org.springframework.data.mongodb.core.convert.MappingMongoConverter mappingMongoConverter, DataBufferFactory dataBufferFactory, MongoProperties properties)