0
点赞
收藏
分享

微信扫一扫

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/**"/>

举报

相关推荐

0 条评论