0
点赞
收藏
分享

微信扫一扫

com.alibaba.fastjson.JSONException: autoType is not support.


错误原因是fastJson反序列化的时候发生了异常

解决方法是:

添加autotype白名单

在resource下建立fastjson.properties文件

com.alibaba.fastjson.JSONException: autoType is not support._json


输入一下内容

#fastjson反序列化时自动解析白名单配置,多个实体用逗号分隔
fastjson.parser.autoTypeAccept=com.rc.openapi.domain.mysql.entity.DBillnoRules

就可以解决反序列化的错误了


举报

相关推荐

0 条评论