请求映射配置成/的话,Spring MVC将拦截所有的请求(当然包括静态资源的请求),交由Controller处理,显然静态资源的请求到了Controller那里必然会导致no handler mapping的错误。 参考文章:\ 静态资源访问与拦截 springmvc静态资源访问