转载自:https://github.com/alibaba/fastjson/issues/2790
叙述
fastjson 1.2.62 版本 执行序列化和反序列化时报以下异常:
java.lang.NoSuchMethodError: com.alibaba.fastjson.serializer.JavaBeanSerializer.processValue(Lcom/alibaba/fastjson/serializer/JSONSerializer;Lcom/alibaba/fastjson/serializer/BeanContext;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;Ljava/lang/Integer;
at com.alibaba.fastjson.serializer.ASMSerializer_12_XXX.writeNormal(Unknown Source) ~[?:?]
at com.alibaba.fastjson.serializer.ASMSerializer_12_XXX.write(Unknown Source) ~[?:?]
at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:285) ~[fastjson-1.2.61.jar:?]
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:663) ~[fastjson-1.2.61.jar:?]
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:652) ~[fastjson-1.2.61.jar:?]
。。。。。。
解决方案
暂时没有办法,只能回退到1.2.60 版本,解决问题。
来源:CSDN
作者:Full Stack Developme
链接:https://blog.csdn.net/lizhengyu891231/article/details/103913545