添加数据时候报错信息:
java.lang.IllegalStateException: Type handler was null on parameter mapping for property '__frch_item_17'. It was either not specified and/or could not be found for the javaType (com.alibaba.fastjson.JSONArray) : jdbcType (null) combination.
解决:这是因为JSON格式中有对应的字段是数据库的表中不存在的,所以我们要在添加字段的时候,把无法序列化的字段给它remove掉再保存
JSONObject target = param.getRequestParameter();
target.remove("standardProjectTargets");
最后
以上就是迷你黑夜最近收集整理的关于java保存com.alibaba.fastjson.JSONArray格式到数据库报错的全部内容,更多相关java保存com内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复