@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={com.mongodb.reactivestreams.client.MongoClient.class,org.springframework.data.mongodb.core.ReactiveMongoTemplate.class}) @ConditionalOnBean(value=com.mongodb.reactivestreams.client.MongoClient.class) @EnableConfigurationProperties(value=MongoProperties.class) @Import(value=org.springframework.boot.autoconfigure.data.mongo.MongoDataConfiguration.class) @AutoConfigureAfter(value=MongoReactiveAutoConfiguration.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.
Constructor and Description |
---|
MongoReactiveDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DefaultDataBufferFactory |
dataBufferFactory() |
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 reactiveMongoDbFactory,
org.springframework.data.mongodb.core.convert.MappingMongoConverter mappingMongoConverter,
DataBufferFactory dataBufferFactory) |
org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory |
reactiveMongoDatabaseFactory(MongoProperties properties,
com.mongodb.reactivestreams.client.MongoClient mongo) |
org.springframework.data.mongodb.core.ReactiveMongoTemplate |
reactiveMongoTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory,
org.springframework.data.mongodb.core.convert.MongoConverter converter) |
@Bean @ConditionalOnMissingBean(value=org.springframework.data.mongodb.ReactiveMongoDatabaseFactory.class) public org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory reactiveMongoDatabaseFactory(MongoProperties properties, com.mongodb.reactivestreams.client.MongoClient mongo)
@Bean @ConditionalOnMissingBean(value=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)
@Bean @ConditionalOnMissingBean(value=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)
@Bean @ConditionalOnMissingBean(value=org.springframework.core.io.buffer.DataBufferFactory.class) public DefaultDataBufferFactory dataBufferFactory()
@Bean @ConditionalOnMissingBean(value=org.springframework.data.mongodb.gridfs.ReactiveGridFsOperations.class) public org.springframework.data.mongodb.gridfs.ReactiveGridFsTemplate reactiveGridFsTemplate(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory reactiveMongoDbFactory, org.springframework.data.mongodb.core.convert.MappingMongoConverter mappingMongoConverter, DataBufferFactory dataBufferFactory)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.