在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序列化时,使用了默认的方式

将其注释掉后,恢复正常
本文来自博客园,作者:leexili,转载请注明原文链接:https://www.cnblogs.com/leexili/p/15830373.html
浙公网安备 33010602011771号