[英]“Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments ”,
"Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments ", “使用带有 arguments 的构造函数 NO_CONSTRUCTOR 实例化 java.util.List 失败”,
while fetching data from mongo.. what could be possible reason for this从 mongo 获取数据时..这可能是什么原因
I was having the same issue, It was the aggregation when unwind happened,Dont create the List of Object in Data object,我遇到了同样的问题,这是展开时发生的聚合,不要在数据 object 中创建 Object 列表,
My previous class我以前的 class
Account{
String _id;
List<Transaction> trasactionList
}
Corrected class更正了 class
Account{
String _id;
Transaction trasactionList
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.