Spring Boot学习

springboot 返回的json中忽略null属性值,不传递

2019-03-12  本文已影响0人  JokerJin

第一种:

@JsonInclude(JsonInclude.Include.NON_NULL)

第二种:

spring:
  jackson:
    default-property-inclusion: non_null
上一篇 下一篇

猜你喜欢

热点阅读