1. application.yml
spring:
jackson:
default-property-inclusion: non_null
2. 实体注解
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonInclude(JsonInclude.Include.NON_NULL)
1. application.yml
spring:
jackson:
default-property-inclusion: non_null
2. 实体注解
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonInclude(JsonInclude.Include.NON_NULL)