如何将下面的代码转换为List
DBCursor users = morphia.datastore().createQuery(User.class).fetch().getCursor();
你也可以提供一些删除和保存的示例代码。谢谢。
使用asList()而不是fetch()
asList()
fetch()