org.springframework.boot.autoconfigure.mongo

Class MongoProperties



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

      • DEFAULT_PORT

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

        public static final String DEFAULT_URI
        Default URI used when the configured URI is null.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MongoProperties

        public MongoProperties()
    • Method Detail

      • 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)
      • getFieldNamingStrategy

        public Class<?> getFieldNamingStrategy()
      • setFieldNamingStrategy

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

        public String getUri()
      • determineUri

        public String determineUri()
      • setUri

        public void setUri(String uri)
      • getPort

        public Integer getPort()
      • setPort

        public void setPort(Integer port)
      • getGridFsDatabase

        public String getGridFsDatabase()
      • setGridFsDatabase

        public void setGridFsDatabase(String gridFsDatabase)
      • getMongoClientDatabase

        public String getMongoClientDatabase()