运行报错:

Failed to load resource: the server responded with a status of 404 (Not Found)

原因:

发现是iml文件配置错误,文件名称与项目名称不一致,修改iml文件名称使其一致。

修改再次运行项目,成功!

iml是IDEA中的项目标识文件,缺少这个文件,idea就无法识别项目。同Eclipse的.project性质一样。

iml文件是IDEA自己创建的模块文件,用于Java应用开发,存储一些模块相关的信息,比如一个Java组件,插件组件,maven组件等,存储一些模块路径信息,依赖信息以及别的一些设置。

.idea文件夹:存放项目的配置信息、包括数据源、类库、项目字符编码、历史记录、版本控制信息等。

可以在File types中的Ignore files and folders中可以输入 .idea; 和 *.iml; 将其隐藏。

但不建议隐藏iml,因为项目名中出现中括号是因为iml文件名和项目文件名不一样,需要更改iml文件名

Failed to load resource: the server responded with a status of 404 (Not Found) iml文件配置错误相关推荐

  1. Springboot 页面访问不到静态资源Failed to load resource: the server responded with a status of 404 ()

    Springboot 页面访问不到静态资源 问题:在HTML文件中引入图片,但是浏览器访问不到图片. index.html: <!DOCTYPE html> <html xmlns: ...

  2. 浏览器控制台显示 Failed to load resource: the server responded with a status of 404 ()

    今天做项目时,前端资源可以正常打开,但是使用SpringBoot启动时,前端控制台却显示浏览器控制台显示 Failed to load resource: the server responded w ...

  3. Failed to load resource: the server responded with a status of 404 (Not Found)啥意思

    Failed to load resource: the server responded with a status of 404 (Not Found)这个错误表示,服务器无法找到您请求的资源.具 ...

  4. Failed to load resource: the server responded with a status of 404 ()

    问题: Failed to load resource: the server responded with a status of 404 ()  在SpringMVC中,你可能会遇到访问页面的时候 ...

  5. 无法加载静态的图片Failed to load resource: the server responded with a status of 404 (Not Found)

    想到的解决办法的思路是 1,是否是路径的错误 2,是否在resource中定义了静态资源加载(最好是在webapp下独立创建一个放静态资源的文件) 检查发现是路径的错误,可是为什么会出现路径的错误呢 ...

  6. Failed to load resource: the server responded with a status of 404

    搞来搞去附件下载请求的地址老包404,我用的easyui1.5   引用下载插件 <script type="text/javascript" src="${ctx ...

  7. Failed to load resource:the server responded with a status of 404()

    jsp页面: 原因: 声明文档的解析类型(document.compatMode),避免浏览器的怪异模式.document.compatMode: BackCompat:怪异模式,浏览器使用自己的怪异 ...

  8. Vue3报错之 Failed to load resource: the server responded with a status of 404 (Not Found)

    不知道为什么,重新建立了src组件之后,之前组件运行npm run dev的localhost地址没办法打开新的组件,只能在新的组件里面重新右键在集成终端中打开运行npm run dev,反正问题是解 ...

  9. vue前台Failed to load resource: the server responded with a status of 404 (Not Foun

    可能是代理网络的问题,有时候报错但是页面正常 npm install --no-fund npm run dev

最新文章

  1. 数据竞赛Tricks集锦
  2. matplotlib.transforms
  3. 取代INT 80 的sysenter/sy***it
  4. go例子(一) 使用go语言实现linux内核中的list_head
  5. ppt计算机英语介绍,介绍电脑的英语ppt
  6. mysql查询语句4,MySQL(4):CRUD语句(2)——基本查询
  7. obs可以装手机吗?_原神PC和手机数据互通吗 PC和手机可以一起玩吗
  8. Linux: Nginx 安装
  9. 拆除指令怎么设置_快捷指令(16)朗读屏幕内容
  10. Kubernetes详解(二十四)——Deployment控制器更新实战与查看
  11. 手把手教你做一个Excel 2007数据透视表(有图有真相)
  12. 在vc中实现获取汉字拼音的首字母
  13. JS基础详细汇总((入门级))
  14. 整人网页html语言网站,html愚人节整人一直弹的网页窗口怎么做?
  15. win10安装ePLAN P8 2.7无法通过驱动精灵更新MultiUSB Key驱动问题的解决办法
  16. 与英语密切联系的计算机专业,计算机专业英语
  17. 带你了解ae2021版新功能 ae 2021中文直装版
  18. 华为路由器:ISIS基本原理与配置(含实验)
  19. quartus频率计 时钟设置_Quartus II EDA频率计设计
  20. 华为信息机与c3po包的冲突

热门文章

  1. 【ForOffer】【深信服--测试开发岗笔试题】求最少车费求最低位找马甲找字符串子串
  2. 测试方向基础-多线程知识和常见示例
  3. Linux WAK介绍与入门实例
  4. Linux中awk详解(2)
  5. 机器学习-降维算法(MDS算法)
  6. 前三位必须是大写字母的正则,长度限制5位
  7. 一篇掌握3种不同vlan之间互联的方式(单臂路由+Vlanif接口)
  8. IOS学习之—— APPStore无法打开或者无法正常下载APP 的解决方法
  9. 2022-12-04 第 322 场周赛
  10. GBase 8m核心功能-管理工具