goja-rapid/src/main/java/goja/rapid/mongo/MongoKit.java
public static List<DBObject> findById(String collectionName, String id) {
        DBCollection c = MongoKit.getCollection(collectionName);
        return c.find(new BasicDBObject("_id", new ObjectId(id))).toArray();
    }
public static List<DBObject> findById(String collectionName, String id) {
        DBCollection c = MongoKit.getCollection(collectionName);
        return c.find(new BasicDBObject("_id", new ObjectId(id))).toArray();
    }
public static List < DBObject > findById ( String collectionName , String id ) { DBCollection c = MongoKit . getCollection ( collectionName ) ; return c . find ( new BasicDBObject ( "_id" , new ObjectId ( id ) ) ) . toArray ( ) ; }
根据ID查找
根据ID查找