spring data mongodb 转成对象集合

问题1:如图图片说明
为什么我使用了这个方法 会报错?
问题2:假如使用了
AggregationOutput output = collection.aggregate(dbObjects);
CommandResult commandResult = output.getCommandResult();
String string = commandResult.getString("result");
得到了结果,如何转成对象呢?
因为里面有mongodb独有的:
"_id":{"$oid":"573d490f7c1fee68b76a718b"},"_class":"com.baihui.crm.entity.*",

a mongodb 转成对象集合
问题1:如图图片说明
为什么我使用了这个方法 会报错?
问题2:假如使用了
AggregationOutput output = collection.aggregate(dbObjects);
CommandResult commandResult = output.getCommandResult();
String string = commandResult.getString("result");
得到了结果,如何转成对象呢?
因为里面有mongodb独有的:
"_id":{"$oid":"573d490f7c1fee68b76a718b"},"_class":"com.baihui.crm.entity.*",