异常: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://blog.youkuaiyun.com/xyc_csdn/article/details/72841389