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