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

將其注釋掉后,恢復正常
在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序列化時,使用了默認的方式

將其注釋掉后,恢復正常
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。