有的时候我们把java bean 转换成json的时候,希望屏蔽掉某个属性,这时可以在java bean的属性上加上@JsonIgnore注解,在com.fasterxml.jackson.annotation包下

@JsonIgnore
private String name;

反过来json转java bean 也适用

相关文章:

  • 2021-08-29
  • 2022-12-23
  • 1970-01-01
  • 2021-12-15
  • 2022-02-06
  • 2021-11-09
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-10-26
  • 2022-01-04
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案