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.

Since:
2.0.0
Author:
Mark Paluch, Artsiom Yudovin, Moritz Halbritter, Andy Wilkinson, Phillip Webb, Scott Frederick
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.springframework.data.mongodb.core.convert.MappingMongoConverter
    mappingMongoConverter(org.springframework.data.mongodb.core.mapping.MongoMappingContext context, org.springframework.data.mongodb.core.convert.MongoCustomConversions conversions)
     
    org.springframework.data.mongodb.gridfs.ReactiveGridFsTemplate
    reactiveGridFsTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory, org.springframework.data.mongodb.core.convert.MappingMongoConverter mappingMongoConverter, DataBufferFactory dataBufferFactory)
     
    org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory
    reactiveMongoDatabaseFactory(com.mongodb.reactivestreams.client.MongoClient mongo, MongoProperties properties)
     
    org.springframework.data.mongodb.core.ReactiveMongoTemplate
    reactiveMongoTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory, org.springframework.data.mongodb.core.convert.MongoConverter converter)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • reactiveMongoDatabaseFactory

      @Bean @ConditionalOnMissingBean(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory.class) public org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory(com.mongodb.reactivestreams.client.MongoClient mongo, MongoProperties properties)
    • 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)