【发布时间】:2017-01-26 23:06:04
【问题描述】:
我当前用于解析 html 视图的工作代码是这样的
<mvc:resources mapping="/static/**" location="/WEB-INF/static/html/" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="" />
<property name="suffix" value=".html" />
</bean>
但我需要返回视图,例如
return "/static/html/index";
我怎样才能做到这样?
return "index";
【问题讨论】:
标签: spring spring-mvc spring-boot