使用mongo-java-driver3.0.2.jar和mongodb3.0在java代码中的用户验证4
以下是使用mongo-java-driver3.0.2.jar和mongodb3.0.4在java代码中的用户验证:ServerAddresssa=newServerAddress(host,port);
ListmongoCredentialList=newArrayList();
mongoCredentialList.add(MongoCredential.createMongoCRCred