@ConfigurationProperties(prefix="spring.data.mongodb") public class MongoProperties extends Object
Constructor and Description |
---|
MongoProperties() |
Modifier and Type | Method and Description |
---|---|
MongoClient |
createMongoClient() |
String |
getDatabase() |
String |
getHost() |
String |
getMongoClientDatabase() |
int |
getPort() |
String |
getUri() |
void |
setDatabase(String database) |
void |
setHost(String host) |
void |
setPort(int port) |
void |
setUri(String uri) |
public String getHost()
public void setHost(String host)
public String getDatabase()
public void setDatabase(String database)
public String getUri()
public void setUri(String uri)
public int getPort()
public void setPort(int port)
public String getMongoClientDatabase()
public MongoClient createMongoClient() throws UnknownHostException
UnknownHostException
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.