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

각각의 컨트롤러에서 Exeption 개별적으로 처리한다는 건 중복되는 코드도 많아질뿐더러 관리하기가 상당히 까다로운것 같아 Exception을 처리하는 방법에 대해 고민 및 조사를 했었습니다. 그래서 이번에는 Exeption에 대해서 공통으로 처리하는 방법 두가지에 대해서 기록하려 합니다. 1. AbstractHandlerExceptionResolver 를 사용하는방법 2. @ControllerAdvice, @ExceptionHandler를 이용하는 방법 먼저 AbstractHandlerExceptionResolver 를 이용하는 방법에 대해서 기록하겠습니다. 우선 AbstractHandlerExceptionResolver를 extends받는 클래스를 생성 후, 이 클레스를 implements WebMv..
스프링
2019. 11. 17. 22:29