@EnableCaching
@Configuration
public class RedisConfig {
@Bean
public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory factory) {
RedisTemplate<String, Object> template =
自定义redisTemplate,设置序列化器方便序列化,解决报错LinkedListMap问题
于 2022-01-26 23:19:24 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)