两行代码 忘记修改了

This commit is contained in:
rekoe 2017-12-17 08:53:41 +08:00
parent 33626efc5a
commit 1b55fb866a

View File

@ -72,7 +72,7 @@ public class NutMongoDbStarter {
MongoClientOptions options = builder.build();
logger.info(options); // 打印现有的参数信息便于调优
ServerAddress address = new ServerAddress(conf.get("mongo.host", "127.0.0.1"), conf.getInt("mongo.port", 27017));
ServerAddress address = new ServerAddress(conf.get(PROP_IP), conf.getInt(PROP_PORT));
if (conf.containsKey(PROP_USERNAME)) {
MongoCredential cred = MongoCredential.createScramSha1Credential(conf.get(PROP_USERNAME), null,
conf.get(PROP_PASSWORD, "").toCharArray());