SpringBoot +Redis+FastJson反序列化失败

报错信息:autoType is not support
阅读源码后找这个autotype
在这里插入图片描述

解决办法:
在fastjson的序列化器中加一句

static {
        ParserConfig.getGlobalInstance().addAccept("com.humorchen");
    }
posted @ 2020-11-08 15:08  HumorChen99  阅读(16)  评论(0)    收藏  举报  来源