Spring(二)解决静态资源无法访问 1.首先第一种方法在web.xml里加入: 2.第二种方法:在SpringMvc.xml里: 3.第三种方法:在SpringMvc.xml里: location是根据自己的路径来写的。