org.springframework.boot.autoconfigure.mongo

Class ReactiveMongoClientFactory

  • java.lang.Object
    • org.springframework.boot.autoconfigure.mongo.ReactiveMongoClientFactory


  • public class ReactiveMongoClientFactory
    extends Object
    A factory for a reactive MongoClient that applies MongoProperties.
    Since:
    2.0.0
    Author:
    Mark Paluch, Stephane Nicoll
    • Method Detail

      • createMongoClient

        public com.mongodb.reactivestreams.client.MongoClient createMongoClient(com.mongodb.async.client.MongoClientSettings settings)
        Creates a MongoClient using the given settings. If the environment contains a local.mongo.port property, it is used to configure a client to an embedded MongoDB instance.
        Parameters:
        settings - the settings
        Returns:
        the Mongo client