@JsonIgnoreProperties(value={ "module_name" }, allowSetters= true)
해당 에너테이션의 value에 적는 필드는 기본적으로 deserialize, seriallize 둘다에서 제외된다.
이렇게 제외할 것을 기반으로
그 다음에야 허용할 것을 선택하기 위해서 옵션으로 allowSetter나 allowGetter를 작성한다.
Jackson @JsonIgnore, @JsonIgnoreProperties and @JsonIgnoreType
This page will walk through Jackson @JsonIgnore, @JsonIgnoreProperties and @JsonIgnoreType annotations example. These annotations are used to ignore logical properties in JSON serialization and deserialization.
www.concretepage.com
'Spring > Spring boot' 카테고리의 다른 글
Ldap 설치하고 Springboot와 연동하기 (0) | 2020.02.18 |
---|---|
@JsonPropertyOrder({"name", "id"})를 사용하면 성능이 느려질까? 난 아직 모름.. (0) | 2020.02.04 |
Spring Boot Json, hashmap to json , JsonObject 만들기 (0) | 2019.12.24 |
JWT와 Oauth2 활용 (0) | 2019.12.18 |
라인 노티파이 기능으로 알람 전파하기(봇 사용 x) (0) | 2019.12.10 |
댓글