Add @JsonInclude(value = JsonInclude.Include.NON_NULL) to the class, indicating that the NULL fields of this class will not participate in serialization
Java study notes-@JsonInclude use
Guess you like
Origin blog.csdn.net/mumuwang1234/article/details/110817551
Recommended
Ranking