我是靠谱客的博主 寂寞康乃馨,这篇文章主要介绍jsp加载jquery报错:Failed to load resource: the server responded with a status of 404 (Not Found),现在分享给大家,希望可以做个参考。
昨天页面疯狂报错,一直提示无法加载jquery文件。今天才反应过来,项目是用springmvc的框架,忘记设置静态资源放行导致报错。
在springmvc配置文件加上如下一段话,放行对js文件夹下jquery的请求,页面就能正常使用了!
<mvc:resources location="/js/" mapping="/js/**"></mvc:resources>
最后
以上就是寂寞康乃馨最近收集整理的关于jsp加载jquery报错:Failed to load resource: the server responded with a status of 404 (Not Found)的全部内容,更多相关jsp加载jquery报错:Failed内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复