Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json 我的Spring应用程序正在生成ClassCastException_Json_Spring - Fatal编程技术网

Json 我的Spring应用程序正在生成ClassCastException

Json 我的Spring应用程序正在生成ClassCastException,json,spring,Json,Spring,当我尝试获取类项目时,我得到了ClassCastException 从下面的列表中选择迭代器。web应用程序正在TC7上运行, 赢操作系统 将数据放在DataTables可以识别的JSON格式中 Iterator<CustomerList> itr = aaData.iterator(); cl = itr.next(); 更详细地说,cl的类型是什么?getCustomerList返回一个列表?不是列表?你应该发布stacktrace。它通常提供答案。 Iterator<

当我尝试获取类项目时,我得到了ClassCastException 从下面的列表中选择迭代器。web应用程序正在TC7上运行, 赢操作系统

将数据放在DataTables可以识别的JSON格式中

Iterator<CustomerList> itr = aaData.iterator();

cl = itr.next();

更详细地说,cl的类型是什么?getCustomerList返回一个列表?不是列表?你应该发布stacktrace。它通常提供答案。
Iterator<CustomerList> itr = aaData.iterator();

cl = itr.next();