第一种:

@JsonInclude(JsonInclude.Include.NON_NULL)

第二种:

spring:
  jackson:
    default-property-inclusion: non_null

  

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-05-29
  • 2021-06-08
  • 2022-12-23
  • 2022-01-22
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-08-22
  • 2021-07-21
相关资源
相似解决方案