有些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>