解析视图(View)
(1)ViewResolver接口
<bean id="viewResolver"
class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
逻辑视图名test.被解析成/WEB-INF/jsp/test.jsp
(2)View接口
视图重定向(redirect)
(1)通过控制器返回重定向视图类:RedirectView
(2)返回的视图名中加前缀redirect。如:redirect:/my/response/controller.html
或者redirect:http://myhost.com/some/arbitrary/path.html
(3)forward前缀