Commit 01e994a8 by jinfeng.wang

fix

parent 1c86c2f9
......@@ -29,8 +29,7 @@ public class GetPackageFromMongo {
// build the connection options,set the max wait time in (ms)
builder.readPreference(ReadPreference.primaryPreferred())
.retryWrites(true)
.maxConnectionIdleTime(6000)
.sslEnabled(true);
.maxConnectionIdleTime(6000);
MongoClientOptions opts = builder.build();
// MongoCredential credential2 = MongoCredential.createCredential("username", "databasename",password2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment