Spring Boot2.X 以JSON格式保存到Redis中所遇到的问题
在学习spring-boot 2.x 的过程中,学习使用 redis 时在将 Object类型存入 redis 出现java.util.LinkedHashMap cannot be cast to com.xxx遇到的问题 :
在使用缓存注解时需要修改序列化方式。需要重写 cacheManager ,由于学习的spring-boot视频版本为 1.x 发现 spring-boot 1.x...
原创
2019-02-28 10:39:10 ·
2600 阅读 ·
1 评论