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

七千22

关注

阅读 104

2023-02-20


错误原因是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)

0 0 举报