Class MongoProperties

java.lang.Object
org.springframework.boot.autoconfigure.mongo.MongoProperties

@ConfigurationProperties(prefix="spring.data.mongodb") public class MongoProperties extends Object
Configuration properties for Mongo.
Since:
1.0.0
Author:
Dave Syer, Phillip Webb, Josh Long, Andy Wilkinson, EddĂș MelĂ©ndez, Stephane Nicoll, Nasko Vasilev, Mark Paluch, Artsiom Yudovin
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      Default port used when the configured port is null.
      See Also:
    • DEFAULT_URI

      public static final String DEFAULT_URI
      Default URI used when the configured URI is null.
      See Also:
  • Constructor Details

    • MongoProperties

      public MongoProperties()
  • Method Details

    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getDatabase

      public String getDatabase()
    • setDatabase

      public void setDatabase(String database)
    • getAuthenticationDatabase

      public String getAuthenticationDatabase()
    • setAuthenticationDatabase

      public void setAuthenticationDatabase(String authenticationDatabase)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public char[] getPassword()
    • setPassword

      public void setPassword(char[] password)
    • getReplicaSetName

      public String getReplicaSetName()
    • setReplicaSetName

      public void setReplicaSetName(String replicaSetName)
    • getFieldNamingStrategy

      public Class<?> getFieldNamingStrategy()
    • setFieldNamingStrategy

      public void setFieldNamingStrategy(Class<?> fieldNamingStrategy)
    • getUuidRepresentation

      public org.bson.UuidRepresentation getUuidRepresentation()
    • setUuidRepresentation

      public void setUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation)
    • getUri

      public String getUri()
    • determineUri

      public String determineUri()
    • setUri

      public void setUri(String uri)
    • getPort

      public Integer getPort()
    • setPort

      public void setPort(Integer port)
    • getGridfs

      public MongoProperties.Gridfs getGridfs()
    • getMongoClientDatabase

      public String getMongoClientDatabase()
    • isAutoIndexCreation

      public Boolean isAutoIndexCreation()
    • setAutoIndexCreation

      public void setAutoIndexCreation(Boolean autoIndexCreation)