对于属性值为NULL要不返回对应的属性,在Model添加@JsonInclude(JsonInclude.Include.NON_NULL)如果有为NULL的属性,则不会返回
Spring Boot属性值为NULL不返回
使用前效果:
Spring Boot属性值为NULL不返回

使用后的效果:
Spring Boot属性值为NULL不返回

相关文章:

  • 2021-05-23
  • 2021-10-21
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-08-12
  • 2021-12-27
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2022-01-04
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
相关资源
相似解决方案