我正在开发JSF
与MongoDB
Jongo
连接的应用程序,但控制台正在显示下一条消息,我想删除它:
Grave: 9 [http-listener-1(4)] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
Grave: 1293 [cluster-ClusterId{value='5848a8f264e75c14f0363dac', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:124}] to localhost:27017
Grave: 1300 [cluster-ClusterId{value='5848a8f264e75c14f0363dac', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 2, 9]}, minWireVersion=0, maxWireVersion=4, maxDocumentSize=16777216, roundTripTimeNanos=3243563}
Grave: 8059 [http-listener-1(4)] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:2, serverValue:125}] to localhost:27017
我的Java
代码是:
this.coleccion = (new Jongo(new MongoClient("localhost", 27017).getDB("mydb"))).getCollection("mycollection");
我正在使用下一个技术(JARs
):
谢谢