一、该问题的重现步骤是什么?
使用DictCache获取缓存失败,报错如下:
org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is java.io.StreamCorruptedException: invalid stream header: 0B4A03E7
at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:84)
3、为什么系统会去使用
JdkSerializationRedisSerializer做反序列化。 4、当我把redis缓存手动删除后,获取缓存正常,过段时间又报以上反序列化问题
扫一扫访问 Blade技术社区 移动端