网上看见一篇博文,详细讲了MongoDB读写策略,将来生产会遇到类似的问题,转来备查。指定新mongo实例:Mongo m = new Mongo();Mongo m = new Mongo( "localhost" );Mongo m = new Mongo( "localhost" , 27017 );// or, to connect to a replica set, supply a seed list of membersMongo m = new Mongo(Arrays.asList(new ServerAddress("loc Read More