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结尾的请求:
标签:http margin 包括 .com failed jquer 查询 isp 好的
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结尾的请求:
关于SpringMvc中js和图片路径正确但是不能加载的问题
标签:http margin 包括 .com failed jquer 查询 isp 好的
原文地址:https://www.cnblogs.com/qz18/p/8453892.html