mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-11-30 02:38:28 +08:00
两行代码 忘记修改了
This commit is contained in:
parent
33626efc5a
commit
1b55fb866a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user