Redis
中取出来的Key开头都会有一串字符\xac\xed\x00\x05t\x00
\xac\xed\x00\x05t\x00!dealplatform:set:b2c.lxbtrip.test
这是因为存取序列化的方式为org.springframework.data.redis.serializer.JdkSerializationRedisSerializer
将序列化的方式改为 org.springframework.data.redis.serializer.StringRedisSerializer
会自动去掉\xac\xed\x00\x05t\x00
前缀
本文由 anybbo 创作,采用 知识共享署名4.0
国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Dec 17,2020