출처: 16.5 Views and resolving them (spring.io)
16.5 Views and resolving them
All MVC frameworks for web applications provide a way to address views. Spring provides view resolvers, which enable you to render models in a browser without tying you to a specific view technology. Out of the box, Spring enables you to use JSPs, Velocity
docs.spring.io
내가 이해 한것
MVC프레임워크는 View를 해결하는 방법을 제공하는데
ViewResolver중 InternalResourceViewResolver를 bean으로 생성 사용 시
prefix에 views의 경로를 value값으로, suffix에 파일 형식을 value값으로 지정한다
그리고 Controller에서 return시 파일명만 작성해주기만 하면 합쳐서 경로를 자동으로 완성시켜준다
'Spring' 카테고리의 다른 글
[SpringBoot] 스프링부트 톰캣 포트 변경하는 법 (0) | 2021.10.19 |
---|---|
[Spring][링크] tiles이란? (0) | 2021.01.18 |
[Spring][MVN][링크] Spring test란? (0) | 2021.01.18 |