解决spring中无法访问静态资源

spring mvc的配置文件添加如下配置

<!-- 开放静态资源 -->
    <mvc:resources mapping="/static/**"  location="/static/"/> 

猜你喜欢

转载自my.oschina.net/u/2276456/blog/1514497
今日推荐