티스토리 뷰

728x90
@JsonInclude(Include.NON_EMPTY)
String type;

https://stackoverrun.com/ko/q/4370536

 

java - Jackson serialization : 빈 값 무시 (또는 null)

현재 jackson 2.1.4를 사용하고 있으며 객체를 JSON 문자열로 변환 할 때 필드를 무시할 때 문제가 있습니다. 나는 그것을 변환하는 방법 public class JsonOperation { public static class Request { @JsonInclude(Include.N

stackoverrun.com

 

728x90

'공부' 카테고리의 다른 글

[Java] Gson string number convert double (fixed string)  (0) 2020.06.07
[Java] Gson not call constructor  (0) 2020.06.07
[SQL] not exists  (0) 2020.06.07
[Hive] `ROW_NUMBER()` without `ORDER BY`  (0) 2020.06.07
[JVM] Heap memory size  (0) 2020.06.07
댓글