关于SpringMvc中js和图片路径正确但是不能加载的问题
SpringMvc中,在没有设置拦截特殊的请求时,会默认拦截所有请求,包括js和图片等静态请求,造成资源查询失败404错误 (http://localhost:8080/SSHA/js/jquery.js Failed to load resource: the server responded with a status of 404 (Not Found))。
较好的解决方案是设置SpringMvc拦截特定请求,如设置只拦截以.do结尾的请求: