我需要了解这两个注释之间的主要区别:Spring Boot中的@JsonIgnore
和@JsonIgnoreProperties
。
提前谢谢。
@JsonIgnore是忽略在字段级别使用的字段。而
@JsonIgnoreProperties用于类级别,用于忽略字段列表。
请参阅此处了解更多信息