SpringMVC访问静态资源和绕开controller

绕开controller, 直接进入到页面
<mvc:view-controller path="/t360" view-name="/demo/t360" />



访问静态资源:
<mvc:resources location="/css/" mapping="/css/**"/>
<mvc:resources location="/images/" mapping="/images/**"/>
<mvc:resources location="/script/" mapping="/script/**"/>

猜你喜欢

转载自panyongzheng.iteye.com/blog/2261084