在连接中找到了数据库和集合,但是这给出了这个错误..
INFORMAÇÕES: Exception in monitor thread while connecting to server xarquigo01f:27017com.mongodb.MongoSocketException: xarquigo01f
at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:188)
at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:57)
at com.mongodb.connection.SocketStream.open(SocketStream.java:58)
at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)
at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:113)
at java.lang.Thread.run(Unknown Source)
答案 0 :(得分:0)
排序。问题发生在服务器上,我只是切换服务器而且工作正常。