redis反序列化报错解决

异常:Cannot serialize; nested exception is
org.springframework.core.serializer.support.SerializationFailedException:Failed
to serialize object using DefaultSerializer; nested exception is
java.io.NotSerializableException: xxx

解决方案:

实体实现序列化

class xxx implements Serializable

作者:梦里梦外

--------------------------------------------------------------------------------------------------------------------

个性签名:以梦为马,驰骋岁月;以梦为马,诗酒趁年华!

如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个 “推荐” 哦,博主在此感谢!

原文地址:https://www.cnblogs.com/mengw/p/13566963.html