support.SerializationFailedException: Failed to deserialize payload.

时间:2016-07-28 15:17:35   收藏:0   阅读:3395

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

原文:http://www.cnblogs.com/softidea/p/5714586.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!