Commit 01e994a8 by jinfeng.wang

fix

parent 1c86c2f9
...@@ -29,8 +29,7 @@ public class GetPackageFromMongo { ...@@ -29,8 +29,7 @@ public class GetPackageFromMongo {
// build the connection options,set the max wait time in (ms) // build the connection options,set the max wait time in (ms)
builder.readPreference(ReadPreference.primaryPreferred()) builder.readPreference(ReadPreference.primaryPreferred())
.retryWrites(true) .retryWrites(true)
.maxConnectionIdleTime(6000) .maxConnectionIdleTime(6000);
.sslEnabled(true);
MongoClientOptions opts = builder.build(); MongoClientOptions opts = builder.build();
// MongoCredential credential2 = MongoCredential.createCredential("username", "databasename",password2); // 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