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
- 스프링 부트
- spring cloud config
- WebApplicationInitializer
- 스프링시큐리티
- ServletContextInitializer
- apache thrift
- 인텔리J
- mybatis
- 스프링
- OAuth 2.0
- spring cloud
- devtools
- spring boot mybatis
- spring security
- spring-mybatis
- Spring Boot
- spring boot devtools
- 데브툴즈
- spring boot 1.3
- Multi DataSource
- @MVC
- KSUG
- OAuth2.0
- Fiilter
- spring test mvc
- spring
- spring camp
- Spring Security OAuth
- elasticache
- Spring MVC
Archives
- Today
- Total
목록스프링 부트 (1)
홍이의 개발 노트
Spring Boot의 기본적인 Error처리
관련 클래스: org.springframework.boot.autoconfigure.web.BasicErrorController스프링 부트에서 예외 사항이 발견되면 따로 처리 하는 부분이 존재하지 않으면 이 클래스에서 대부분의 예외를 처리한다.특수한 예외를 제외기본 기능 컨텐츠 타입이 text/html 형태 즉 브라우저에서 페이지로 요청 했을 때 에러가 발생하면 페이지로 보인다.기본 페이지org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration 에서 defaultErrorView 확인해당 페이지 부분을 커스텀방법Bean이름이 "error" 이름으로 View 를 리턴하는 방법 ( 예..
개발이야기/스프링(Spring)
2016. 1. 26. 23:23