zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

redis 反序列化deserialize异常问题解决

Redis异常 解决 序列化 问题
2023-09-27 14:23:03 时间

日志如下

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: 4D797371
    at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:84)
    at org