配置多视图解析器
有些java框架系统开始只有html是视图层,需要增加jsp视图
可以在spring-mvc文件中增加视图解析器
<bean id='htmlviewResolver' class='org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver' p:suffix=".html" p:order="0"><property name="contentType" value="text/html;charset=utf-8" /> </bean> <bean id='jspviewResolver' class='org.springframework.web.servlet.view.INternalResourceViewResolver' p:suffix=".jsp" p:order="1"><property name="contentType" value="text/html;charset=utf-8" /> </bean>