新建的GenericFastJson2JsonRedisSerializer里面添加白名
添加:
static {
ParserConfig.getGlobalInstance().addAccept("com.xxx.xxx.bo");
ParserConfig.getGlobalInstance().addAccept("com.xxx.xxx.redis");
}
参考:https://blog.csdn.net/InnovationAD/article/details/84341687