实现序列化后报错

来源:4-14 分布式会话实现(中)

MaJesTySA

2019-06-22

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 org.springframework.core.NestedIOException: Failed to deserialize object type; nested exception is java.lang.ClassNotFoundException: org.springframework.security.web.savedrequest.DefaultSavedRequest
··············
UserModel实不实现Serializable报错都是一样的。

写回答

1回答

龙虾三少

2019-06-22

错误贴全,报错里写了类找不到,确认下springboot版本和课程中是否一致

0
2
龙虾三少
回复
MaJesTySA
确认下你的pom文件和课程内的源码是否一致,有的版本不一致的会有各种冲突和隐藏的坑
2019-06-22
共2条回复

聚焦Java性能优化 打造亿级流量秒杀系统(赠秒杀项目)

理解高流量电商网站性能构建思路 用高逼格技术解决性能提升问题

2174 学习 · 1009 问题

查看课程