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

저번 글에서 ResponseBody응답으로 간단한 Spring타입에 대해서 리턴받는 방식을 기록한 적이 있습니다. (해당글은 여기에 :https://duooo-story.tistory.com/9) 이번에는 일반적으로 사용되는 Object를 json형태로 return 받는 방식에 대해서 살펴보려 합니다. @RequestMapping("/jackson") @ResponseBody public TestDomain helloObject() { // 뭔가를 받아와서 도메인을 만들었다 가정하고.. TestDomain tobj = new TestDomain("du",10); return tobj; } 만약 @EnableWebMvc ,WebMvcConfigurer등에대한 기본 설정만 한 상태라면 다음과 같은 에러를 맞..

이번에는 @EnableWebMvc에 대해서 기록해 놓으려고 합니다. @EnableWebMvc를 살펴보면 다음과 같이 선언이 되어있습니다. @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Import(DelegatingWebMvcConfiguration.class) public @interface EnableWebMvc { } @Import(DelegatingWebMvcConfiguration.class)해당 부분을 Import하게 되는데 해당 클레스와 그 속에서 상속하는 WebMvcConfigurationSupport를 보면 MVC에서 필요한 기본적인 세팅을 해주거나, 웹 관련 설정을 커스터마이징 할 수 있도록 기능을 ..