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已经不是同一个了。

因此报错

 

 

http://cwj158.iteye.com/blog/1304979

相关文章:

  • 2021-10-31
  • 2021-05-10
  • 2021-12-06
  • 2021-09-21
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2021-11-14
  • 2021-09-17
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案