使用Redis 配置替换fastjson 反序列化报错 com.alibaba.fastjson.JSONException: autoType is not support

新建的GenericFastJson2JsonRedisSerializer里面添加白名

添加:

static {
        ParserConfig.getGlobalInstance().addAccept("com.xxx.xxx.bo");
        ParserConfig.getGlobalInstance().addAccept("com.xxx.xxx.redis");
    }
参考:https://blog.csdn.net/InnovationAD/article/details/84341687

posted on 2018-12-10 10:56  我&菜鸟  阅读(8092)  评论(0编辑  收藏  举报