본문 바로가기

du.study기록공간

검색하기
du.study기록공간
프로필사진 du.study

  • 분류 전체보기 (70)
    • 자바 (23)
    • 스프링 (31)
    • Tool (2)
    • presto (1)
    • DB (3)
    • JPA (5)
    • nginx (1)
    • kotlin (2)
    • 기타 잡다한 지식 (2)
Guestbook
Notice
«   2025/05   »
일 월 화 수 목 금 토
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
  • asyncconfigurer
  • java.util.list
  • micrometer tracing
  • java
  • elasticsearch
  • EnableWebMvc
  • DeferredImportSelector
  • spring MVC
  • java list
  • traceasynccustomautoconfiguration
  • ResponseBody
  • spring
  • map
  • Spring JPA
  • java lambda
  • aws secretmanager
  • Sleuth
  • @FunctionalInterface
  • CompletableFuture
  • grpc
  • asynccustomautoconfiguration
  • traceId
  • HashMap
  • SpringMVC
  • list
  • wire type
  • kotlin
  • jpa
  • awssecretsmanagerpropertysources
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록@JsonCreator (1)

du.study기록공간

@JsonCreator with Spring web controller (enum)

이번엔 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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바