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 TypeMethodDescriptionorg.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)
-
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) -
dataBufferFactory
@Bean @ConditionalOnMissingBean(org.springframework.core.io.buffer.DataBufferFactory.class) public DefaultDataBufferFactory 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)
-