com.alibaba.fastjson.JSONObject and XXXXX are in unnamed module of loader 
org.apache.catalina.loader.ParallelWebappClassLoader

原因:
因为他解析json时将类型转为了linkedHashmap了,而不是转为你需要的实体类来封装,
因此只要一遍历就会报错。

解决办法:
将数据重新转为json,然后再转回来就行了

String s = JSON.toJSONString(objectVo); //json转换有问题,需要重新转,并指明类型
List skuHasStockVos1 = JSON.parseArray(s, ObjectVo.class);// 指定转换的类型

GitHub 加速计划 / js / json
54
5
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:23 天前 )
2d9a2512 19 小时前
3cca3ad2 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.17 to 3.28.18. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/60168efe1c415ce0f5521ea06d5c2062adbeed1b...ff0a06e83cb2de871e5a09832bc6a81e7276941f) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.28.18 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 4 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐