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 | 31 |
Tags
- java lambda
- Spring Boot
- ResponseBody
- @FunctionalInterface
- jpa
- traceId
- traceasynccustomautoconfiguration
- Sleuth
- asyncconfigurer
- map
- java list
- awssecretsmanagerpropertysources
- micrometer tracing
- java.util.list
- elasticsearch
- wire type
- DeferredImportSelector
- CompletableFuture
- HashMap
- java
- list
- kotlin
- EnableWebMvc
- spring
- aws secretmanager
- grpc
- spring MVC
- Spring JPA
- SpringMVC
- asynccustomautoconfiguration
Archives
- Today
- Total
목록spring 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