第一种方式
@JsonInclude(JsonInclude.Include.NON_NULL)
第二种方式
spring:
jackson:
default-property-inclusion: non_null

第一种方式
@JsonInclude(JsonInclude.Include.NON_NULL)
第二种方式
spring:
jackson:
default-property-inclusion: non_null
本文标题:SpringBoot 返回的json中忽略null属性值
本文链接:https://www.haomeiwen.com/subject/msmcfctx.html
网友评论