fastjson annotation.deserialize() 应该换成 !annotation.serialize()

ubof19bj  于 2021-11-27  发布在  Java
关注(0)|答案(1)|浏览(204)

fastjson/src/main/java/com/alibaba/fastjson/util/JavaBeanInfo.java

Lines 739 to 741 in fa5c70c

| | if (annotation !=null&& annotation.deserialize()) { |
| | continue; |
| | } |

比如这种情况:

@JSONField(serialize = false, deserialize = false)
public JSONObject getData() {...}

相关问题