Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- java.util.list
- java lambda
- DeferredImportSelector
- micrometer tracing
- aws secretmanager
- spring MVC
- CompletableFuture
- list
- traceasynccustomautoconfiguration
- traceId
- map
- java list
- jpa
- asynccustomautoconfiguration
- SpringMVC
- kotlin
- spring
- java
- ResponseBody
- EnableWebMvc
- asyncconfigurer
- awssecretsmanagerpropertysources
- grpc
- wire type
- Spring Boot
- @FunctionalInterface
- elasticsearch
- Sleuth
- HashMap
- Spring JPA
Archives
- Today
- Total
목록request body enum (1)
du.study기록공간

이번엔 request dto에 enum타입을 받아올 때, Jackson에서 제공하는 기본 EnumDeserializer 외에 내가 지정한 setter를 사용하는 방법에 대해 기록해보려 합니다. (게시글에서 만큼은 네이밍의 고통을 받고싶지않아 조금 날림입니다.) 간단한 테스트 코드를 구성해봅니다. @RestController public class TestController { @PostMapping("/hello") public String matchEnumTest(@RequestBody RequestDto requestDto){ return "hello world"; } } @Getter public class RequestDto { private TestEnum testEnum; } public en..
스프링
2021. 3. 7. 00:11