@Controller
public class UrlViewMappingController
extends java.lang.Object
다른 Controller들의 메쏘드에 더 이상 매핑할 수 없는 경우, 요청한 URL 대로 해당 뷰를 찾도록 하기 위한 Controller.
예를 들어, 컨텍스트 경로를 제외한 요청 URL이 "/user/user-list.html"이라면, 확장자를 제외한 "/usr/user-list"를 찾을 뷰 이름으로 돌려준다.
이는 서버 처리 없이 바로 뷰로 가야하는 요청의 경우 별도의 메쏘드를 생성하지 않아도 되도록 하기 위함이다.
Constructor and Description |
---|
UrlViewMappingController() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
showPage(javax.servlet.http.HttpServletRequest request)
아무도 처리하지 않을 때 요청 URL에 해당하는 View로 돌린다.
|