Class MongoProperties
java.lang.Object
org.springframework.boot.autoconfigure.mongo.MongoProperties
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, Safeer Ansari
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default port used when the configured port isnull
.static final String
Default URI used when the configured URI isnull
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getHost()
char[]
getPort()
getUri()
org.bson.UuidRepresentation
void
setAdditionalHosts
(List<String> additionalHosts) void
setAuthenticationDatabase
(String authenticationDatabase) void
setAutoIndexCreation
(Boolean autoIndexCreation) void
setDatabase
(String database) void
setFieldNamingStrategy
(Class<?> fieldNamingStrategy) void
void
setPassword
(char[] password) void
void
setReplicaSetName
(String replicaSetName) void
void
setUsername
(String username) void
setUuidRepresentation
(org.bson.UuidRepresentation uuidRepresentation)
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORTDefault port used when the configured port isnull
.- See Also:
-
DEFAULT_URI
Default URI used when the configured URI isnull
.- See Also:
-
-
Constructor Details
-
MongoProperties
public MongoProperties()
-
-
Method Details
-
getHost
-
setHost
-
getDatabase
-
setDatabase
-
getAuthenticationDatabase
-
setAuthenticationDatabase
-
getUsername
-
setUsername
-
getPassword
public char[] getPassword() -
setPassword
public void setPassword(char[] password) -
getReplicaSetName
-
setReplicaSetName
-
getFieldNamingStrategy
-
setFieldNamingStrategy
-
getUuidRepresentation
public org.bson.UuidRepresentation getUuidRepresentation() -
setUuidRepresentation
public void setUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation) -
getUri
-
determineUri
-
setUri
-
getPort
-
setPort
-
getGridfs
-
getMongoClientDatabase
-
isAutoIndexCreation
-
setAutoIndexCreation
-
getAdditionalHosts
-
setAdditionalHosts
-