Commit f1d407a0 by jinfeng.wang

fix

parent 9099635d
...@@ -26,7 +26,7 @@ public class GetPackageFromMongo { ...@@ -26,7 +26,7 @@ public class GetPackageFromMongo {
try { try {
MongoClientOptions.Builder builder = new MongoClientOptions.Builder(); MongoClientOptions.Builder builder = new MongoClientOptions.Builder();
// build the connection options,set the max wait time in (ms) // build the connection options,set the max wait time in (ms)
builder.maxConnectionIdleTime(60000); builder.maxConnectionIdleTime(300000);
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