Failed to load resource:the server responded with a status of 404 (Not Found)
时间: 2023-08-27 10:16:36 浏览: 197
vue打包npm run build时候界面报错的解决
根据引用内容,出现"Failed to load resource: the server responded with a status of 404 (Not Found)"的错误是因为servlet路径的问题。请检查servlet的java文件与xml中的<servlet>与<servlet-mapping>标签路径、内容是否对应。如果对应无误,请确保index.jsp文件是否直接在项目文件下。
另外,根据引用内容,你提到了重启项目的命令"npm run serve"。如果以上路径检查无误,可以尝试重启项目来解决404错误。
最后,根据引用内容,你还提到了在Vue模板页面中调用Vuex派发触发HTTP接口调用的情况。这可能与你的404错误无关,但如果你的HTTP请求涉及到轮播图数据获取,你也可以检查一下相应的接口是否正确。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [解决 Failed to load resource: the server responded with a status of 404 (Not Found) 问题](https://blog.csdn.net/sinat_41838539/article/details/86502041)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Axios Failed to load resource: the server responded with a status of 404 (Not Found)](https://blog.csdn.net/LlanyW/article/details/128381553)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文