mongo與java 的group by分組和排序代碼(備忘)

MongoTemplate gameMt = (根據具體項目得到)數據庫        DBCollection myColl = gameMt.getDb().getCollection("avatar");//表名         // 分組         DBObject groupFields = new BasicDBObject("_id", "$level");// level爲數
相關文章
相關標籤/搜索