반응형
스프링에는 뷰선택의 우선순위가 존재한다.
뷰 선택 우선순위
BasicErrorController 의 처리 순서
1.뷰템플릿
resources/templates/error/500.html
resources/templates/error/5xx.html
2.정적리소스(static,public)
resources/static/error/400.html
resources/static/error/404.html
resources/static/error/4xx.html
3.적용 대상이 없을 때 뷰 이름(error)
resources/templates/error.html
반응형
'SpringFramework | SpringBoot' 카테고리의 다른 글
스프링의 기본 동작원리 (0) | 2023.11.10 |
---|---|
스프링 Transactional 정리 (0) | 2023.11.10 |
[Mybatis] useGeneratedKeys와 selectKey (0) | 2023.11.09 |
SpringBoot의 메인 메서드의 풀이 (0) | 2023.11.09 |
SOLID원칙이란? (0) | 2023.11.09 |