题目 Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link t
问题:Attempted to serialize java.lang.Class. Forgot to register a type adapter? 原因:Gson不支持类信息,序列化和返序列化 解决方案: 使用Gson的 excluedFieldsWithoutExposeAnnotation() 选项忽略这些字段 Gson gson = new GsonBuilder().exclu