@Data @JsonInclude(JsonInclude.Include.NON_NULL) public class ResponseVO<T> { private Integer status; private String msg; private T data; public ResponseVO(Integer status, String msg) { this.status = status; this.msg = msg; } }
原文:https://www.cnblogs.com/ttlcy/p/12283606.html