首页 > 其他分享 >support.SerializationFailedException: Failed to deserialize payload.

support.SerializationFailedException: Failed to deserialize payload.

时间:2022-12-13 21:36:12浏览次数:33  
标签:support Redis Failed Bean SerializationFailedException payload

support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is java.io.InvalidClassException

使用org.springframework.data.redis.core.RedisTemplate从Redis中读取数据时,报上面的错。

 

原因,缓存是昨天,缓存中用到的Bean今天改过并重新部署,这样Redis中存放的bean和今天的项目中Bean已经不是同一个了。

因此报错

标签:support,Redis,Failed,Bean,SerializationFailedException,payload
From: https://blog.51cto.com/u_15147537/5935160

相关文章