SpringFramework | SpringBoot
spring 뷰 선택 우선 순위
Lcoding
2023. 11. 10. 17:34
반응형
스프링에는 뷰선택의 우선순위가 존재한다.
뷰 선택 우선순위
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
반응형