随笔分类 -  redis

redis
摘要:redistemplate 默认的序列化方式是 JdkSerializationRedisSerializer , java操作时会产生乱码,故更改其序列化方式 (附加:StringRedisTemplate 的默认序列化方式为 StringRedisSerializer) 方法1: @Bean p 阅读全文
posted @ 2021-08-24 12:06 cxylm 阅读(4077) 评论(0) 推荐(0)
摘要:环境: springboot 2.0.4 maven 一、在pom中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId 阅读全文
posted @ 2021-07-30 15:19 cxylm 阅读(80) 评论(0) 推荐(0)