新建的GenericFastJson2JsonRedisSerializer里面添加白名

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

添加:

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

相关文章: