spring.xml中添加静态资源映射
<mvc:resources location="/js/" mapping="/js/"/>
<mvc:resources location="/css/" mapping="/css/"/>
spring.xml中添加静态资源映射
<mvc:resources location="/js/" mapping="/js/"/>
<mvc:resources location="/css/" mapping="/css/"/>
本文标题:Springmvc 无法访问JS、CSS静态资源
本文链接:https://www.haomeiwen.com/subject/baaqsxtx.html
网友评论