Spring Data Redis key值出现 \xac\xed\x00\x05t\x00

功能需求是实现过期任务,结果发现key值出现了乱码,\xac\xed\x00\x05t\x00/,于是百度,找到了几篇不错的文章,

Spring Data操作Redis时,发现key值出现 \xac\xed\x00\x05t\x00\tb

解决Spring Boot 使用RedisTemplate 存储键值出现乱码 \xac\xed\x00\x05t\x00

这些都详细介绍了原因(我只是稍微看了看,为了解决错误,还没有仔细学习),
但我参考的是第二个文章中的评论,使用了StringRedisTemplate,成功。

你可能感兴趣的:(Spring Data Redis key值出现 \xac\xed\x00\x05t\x00)