xml 和 json 序列化忽略字段

xml 和 json 序列化忽略字段:

@JsonIgnore

@XmlTransient

 

字段节点为空时,置空不返回给前端

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist=false)
    private List<CategoryEntity> children;  

  

posted @ 2018-06-17 12:12  xiluhua  阅读(882)  评论(0编辑  收藏  举报