DB db = mongo.getDB("sample");
DBCollection table = db.getCollection("samplecollection");
DBCursor cursor2 = table.find();
给出的结果为: { “_id”:{ “$oid”:“58bfbcff1d30d8a8c1194328”},“ID”:1,“名称”:“dgsdg”
如何获取没有objectid的文档?
最佳答案
关于java - 如何在 MongoDB 中返回没有 objectId 的集合的文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42667175/