更改springmvc-servlet.xml文件 springmvc 单独处理图片、样式、js等资源 <mvc:resources location="/static/" mapping="/static/**"/> 设置静态资源访问文件夹,将静态资源放置文件夹,即可