Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 리소스핸들러
- 백준
- 다익스트라
- OAuth2
- Application Runner
- EnableAutoConfiguration
- rest api
- HATEOAS
- 알고리즘
- 정적 리소스
- WebApplication Type
- @ConfigurationProperties
- 백기선
- 스프링 부트
- webjar
- 외부설정
- 백트래킹
- AuthenticationPrincipal
- HttpMessageConverters
- 리소스 서버
- application.properties
- cors
- Spring Security
- 브루트포스
- @Profile
- JsonSerializer
- Application Argument
- Application Event
- JPA
- 스프링부트
Archives
- Today
- Total
목록Exception Handler (1)
아카이브

기본 error handler인 BasicErrorController가 존재하는데, 별도의 custom handler도 구성할 수 있다 @ExceptionHandler(SampleException.class) - RuntimeException을 상속한 SampleException이 발생하면 해당 method를 실행한다 Global using을 위해 @ControllerAdvice controller를 만들고, 이 안에 @ExceptionHandler를 구성하면 모든 controller에서 사용할 수 있다
Spring/스프링 부트 개념과 활용
2021. 1. 3. 16:38