SpringBoot处理返回json中的null属性
在实体类中添加
@JsonInclude(JsonInclude.Include.NON_EMPTY)
注解
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ProductListOut {
private Integer rtypeId;
private Integer typeId;
private String typeName;
private String ename;
}