일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- mybatis
- INSERT
- bulkinsert
- Ajax
- java
- 기출문제
- spring
- mysql
- vue.js
- JQuery
- 오라클
- query
- jdbc
- vscode tutorial
- insertAll
- vue Carousel
- checkbox
- MariaDB
- jsp
- 마스킹
- NoSQL
- egov
- 부스트코스
- JSON
- swipe 배너
- Tomcat
- github
- 정보처리산업기사
- JAXBContext
- 구멍가게코딩단
Archives
- Today
- Total
목록
728x90
반응형
Jackson (1)
728x90
반응형
개발새발
class 객체에 null값인 객체 미노출 (@JsonInclude)
rMate 차트를 사용하면서 데이터를 불러올 때 객체에 null이거나 0인 필드명들이 노출이 되지 않아야 차트에서 데이터를 정확하게 나타낼 수 있다. 따라서, 불필요한 필드들의 null 값 리턴이나 의도적으로 미노출하고자 하는 class에 @JsonInclude 어노테이션을 사용한다. [@JsonInclude 미사용시 : 기본값] public static class test { private int num; private String name; private String adress; private int phoneNum; } { "num" : 1, "name" : "지나", "adress" : null, "phoneNum" : 0 } [옵션 종류] @JsonInclude(JsonInclude.Inclu..
Framework/springboot
2021. 7. 29. 10:07
728x90
반응형