我每天早上使用azure cosmosdb和mongoAPI (spring data,mongoRepository),第一次从mongo获取数据的请求导致异常: at com.mongodb.Mongo.execute(Mongo.java:836)
at com.mongodb.Mongo$2.execute(
MongoClientOptions.Builder options_builder = new MongoClientOptions.Builder(); MongoClientOptions options = options_builder.build();
MongoClient mongo= new MongoClient ("localhost:27017", op
org.mongodb.driver.connection : Opened connection [connectionId{localValue:4, serverValue:4}] to 127.0.0.1:27017 protected String getDatabaseName() { }
public Mongomongo() throws Exception {
// r
com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:60) at com.mongodb.Mongo$2.execute(Mongo.java:828)
at com.mongodb.DBCollection.executeWriteOperation
(Mongo.java:827) at com.mongodb.MongoCollectionImpl.executeSingleWriteRequest", e); Log.error("[MDB] Going to update mongo instance due to exceptionmongoClient.cl