HappyWeasel
Spring Boot - DTO에서 null인 field는 json에서 빼기 본문
public class MyDto {
@JsonInclude(Include.NON_NULL)
private String stringValue;
private int intValue;
// standard getters and setters
}
'Back-End > Spring' 카테고리의 다른 글
[펌] Spring WebFlux에서 Request Body, Response 로깅하기 (0) | 2021.08.30 |
---|---|
Spring Boot - openapi swagger 파라미터 제외 전역 설정 (0) | 2021.02.22 |
Spring - API Gateway (0) | 2021.01.28 |
Spring - MSA (수정 중) (0) | 2021.01.28 |
Spring Boot - Transaction 클래스에 선언 시 특정 메소드 예외처리 (0) | 2021.01.27 |
Comments