@ConfigurationProperties(prefix="spring.data.mongodb") public class MongoProperties extends Object
Constructor and Description |
---|
MongoProperties() |
Modifier and Type | Method and Description |
---|---|
void |
clearPassword() |
MongoClient |
createMongoClient(MongoClientOptions options) |
String |
getDatabase() |
String |
getGridFsDatabase() |
String |
getHost() |
String |
getMongoClientDatabase() |
char[] |
getPassword() |
int |
getPort() |
String |
getUri() |
String |
getUsername() |
void |
setDatabase(String database) |
void |
setGridFsDatabase(String gridFsDatabase) |
void |
setHost(String host) |
void |
setPassword(char[] password) |
void |
setPort(int port) |
void |
setUri(String uri) |
void |
setUsername(String username) |
public String getHost()
public void setHost(String host)
public String getDatabase()
public void setDatabase(String database)
public String getUsername()
public void setUsername(String username)
public char[] getPassword()
public void setPassword(char[] password)
public void clearPassword()
public String getUri()
public void setUri(String uri)
public int getPort()
public void setPort(int port)
public String getGridFsDatabase()
public void setGridFsDatabase(String gridFsDatabase)
public String getMongoClientDatabase()
public MongoClient createMongoClient(MongoClientOptions options) throws UnknownHostException
UnknownHostException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.