public class A {
@JsonInclude(JsonInclude.Include.NON_NULL)
private String field;
}
ํน์ class ์ ์ฒด์ ์ด๋ ธํ ์ด์ ์ ๋ฌ์์ฃผ์ด๋ ๋๋ค.
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class A {
private String field;
}
'๐ Web > Spring, JPA' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JPA] error: Attempt to recreate a file for type ~ ... (0) | 2023.07.11 |
---|---|
[JPA] JPA์์ MySql์ Order by Field ์ฌ์ฉ๋ฒ (์ ๋ ฌ ์์ ์๋์ผ๋ก ์ง์ ํ๋ ๋ฐฉ๋ฒ) (0) | 2023.05.31 |
[JPA] @Embeddable๋ฅผ ์ด์ฉํ ๋ณตํฉํค ์ค์ (0) | 2023.03.03 |
[Spring] String Constant Pool (0) | 2022.08.02 |
[Spring] CORS ์ค์ (0) | 2022.07.21 |