在spring boot中整合redis后,经过测试发现会报一下错误:

Could not read JSON: Unexpected token (START_OBJECT), expected START_ARRAY: need JSON Array to contain As.WRAPPER_ARRAY type information for class java.lang.Object

 

最终发现是Redis在使用Jackson序列化时,使用了默认的方式

将其注释掉后,恢复正常

 

posted on 2022-01-21 15:16  leexili  阅读(3313)  评论(0)    收藏  举报