当前位置: 首页 > news >正文

河南专业网站建设公司首选收录优美图片崩了

河南专业网站建设公司首选,收录优美图片崩了,沈阳做网站在哪,廊坊免费网站建设模板本文简单描述分别用Idea菜单、pom.xml文件管理项目模块module 踩过的坑: 通过idea菜单创建模块,并用idea菜单修改模块名,结构程序编译报错,出错的代码莫名奇妙。双击maven弹窗clean时,还是报错。因为模块是新建的&am…

本文简单描述分别用Idea菜单、pom.xml文件管理项目模块module

踩过的坑:

通过idea菜单创建模块,并用idea菜单修改模块名,结构程序编译报错,出错的代码莫名奇妙。双击maven弹窗clean时,还是报错。因为模块是新建的,只有两个controller函数,非常简单,感觉是改模块名时,idea把某些配置信息改了,出现编译问题。

困惑过后,冷静思考,idea只是高级编辑器,界面上的所有修改,都应该固化到项目文件中。

以创建模块module为例:

①向导窗口中填写的模块名称yudao-module-app会写入新建模块的pom.xml文件中

 实际上idea界面中的模块名称取自该模块下的pom.xml中的name字段(一般与artifactId相同):

<artifactId>yudao-module-app222</artifactId>

......

<name>yudao-module-app</name>

 证明:当通过idea界面修改模块名称时,pom.xml中的artifactId字段会同步改变。

注:但是修改pom.xml的artifactId字段时,idea界面显示的模块名称不会同步修改

而且模块名与路径名要同步修改,否则maven会报错

IDEA重命名一个模块(详细说明)_compiler.xml-CSDN博客文章浏览阅读1w次,点赞11次,收藏49次。最精准无误地修改idea的模块名!_compiler.xmlhttps://blog.csdn.net/xiaoyouyouaaa/article/details/122729353?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168506388216782425116170%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168506388216782425116170&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-122729353-null-null.142%5Ev88%5Econtrol_2,239%5Ev2%5Einsert_chatgpt&utm_term=idea%E6%A8%A1%E5%9D%97%E9%87%8D%E5%91%BD%E5%90%8D%E9%97%AE%E9%A2%98&spm=1018.2226.3001.4187https://blog.csdn.net/xiaoyouyouaaa/article/details/122729353?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168506388216782425116170%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168506388216782425116170&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-122729353-null-null.142%5Ev88%5Econtrol_2,239%5Ev2%5Einsert_chatgpt&utm_term=idea%E6%A8%A1%E5%9D%97%E9%87%8D%E5%91%BD%E5%90%8D%E9%97%AE%E9%A2%98&spm=1018.2226.3001.4187https://blog.csdn.net/xiaoyouyouaaa/article/details/122729353?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168506388216782425116170%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168506388216782425116170&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-122729353-null-null.142%5Ev88%5Econtrol_2,239%5Ev2%5Einsert_chatgpt&utm_term=idea%E6%A8%A1%E5%9D%97%E9%87%8D%E5%91%BD%E5%90%8D%E9%97%AE%E9%A2%98&spm=1018.2226.3001.4187https://blog.csdn.net/xiaoyouyouaaa/article/details/122729353?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168506388216782425116170%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=168506388216782425116170&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-1-122729353-null-null.142%5Ev88%5Econtrol_2,239%5Ev2%5Einsert_chatgpt&utm_term=idea%E6%A8%A1%E5%9D%97%E9%87%8D%E5%91%BD%E5%90%8D%E9%97%AE%E9%A2%98&spm=1018.2226.3001.4187老鸟提示:新建模块时,命名要遵守规范,因为修改module名称很麻烦,创建后少修改。

②idea创建模块时,会将新建模块名称写入父模块pom.xml文件中:

<modules><module>yudao-dependencies</module><module>yudao-framework</module><!-- Server 主项目 --><module>yudao-server</module><!-- 各种 module 拓展 --><module>yudao-module-system</module><module>yudao-module-infra</module><module>yudao-module-app</module> <!-- 由idea创建的模块,idea自动将模块名加入父项目的pom.xml中 -->
</modules>

注:通过idea菜单删除模块时,父模块pom.xml中的注册信息不会自动删除。

删除模块后,父模块pom.xml中定义的<module>yudao-module-app</module>会爆红

③项目根路径下的.idea目录(被git忽略)中,有maven相关配置:

注:.idea目录中的文件是由idea管理的,不建议手动编辑,可以在IDEA界面编辑

IntelliJ IDEA: What Is the .idea Folder and How to Manage It - BootcampToProdLearn about the .idea folder in IntelliJ IDEA, its purpose, content, and best practices. This blog post will explain how to configure, ignore, share, andhttps://bootcamptoprod.com/intellij-idea-folder/https://bootcamptoprod.com/intellij-idea-folder/https://bootcamptoprod.com/intellij-idea-folder/

How to Configure the .idea Folder?

如何配置 .idea 文件夹?

The .idea folder is automatically generated and updated by IntelliJ IDEA based on the project structure and the user actions. We do not need to manually edit the files inside the .idea folder, as this can cause errors or inconsistencies. Instead, we can use the IDE’s graphical user interface (GUI) to configure the project settings and preferences.

 .idea 文件夹由 IntelliJ IDEA 根据项目结构和用户操作自动生成和更新。我们不需要手动编辑 .idea 文件夹内的文件,因为这可能会导致错误或不一致。相反,我们可以使用 IDE 的图形用户界面(GUI)来配置项目设置和首选项。

To access the project settings, we can go to File -> Project Structure or press Ctrl+Alt+Shift+S. On macOS shortcut is Command+; This will open a dialog window where we can adjust various options, such as:

要访问项目设置,可以转到 “File” -> “Project Structure” 或按 Windows 上的 Ctrl+Alt+Shift+S。在 macOS 上的快捷键是 Command+;。这将打开一个对话框窗口,我们可以在其中调整各种选项,例如:

  • Project SDK and language level
  • Project compiler output path
  • Modules and dependencies
  • Libraries and global libraries
  • Artifacts and build tools
  • And more

To access the preferences, we can go to File -> Settings or press Ctrl+Alt+S on windows OS. On macOS, we can go to Intellij IDEA -> Settings or press Command+, .This will open another dialog window where we can customize various options, such as:

要访问首选项,可以转到 “File” -> “Settings” 或在 Windows 操作系统上按 Ctrl+Alt+S。在 macOS 上,可以转到 “IntelliJ IDEA” -> “Preferences” 或按 Command+,。这将打开另一个对话框窗口,我们可以在其中自定义各种选项,例如:

  • Editor settings, such as code style, fonts, colors, inspections, etc.
  • Plugins and marketplace
  • Version control settings, such as VCS integration, commit options, branches, etc.
  • Tools settings, such as terminal, database, HTTP client, etc.
  • And more

We can also use the search bar at the top of the dialog windows to quickly find the option we are looking for. 

我们还可以在对话框窗口顶部的搜索栏中使用搜索功能,快速找到我们正在寻找的选项。

IntelliJ Idea Project Structure

设置-》编译器-》排除配置,idea界面与compiler.xml文件对应关系

 项目结构-》项目-》sdk 配置(jdk版本),idea界面与compiler.xml文件对应关系

 设置-》构建、执行、部署-》构建工具-》Maven-》已忽略的文件 配置对应关系:

 我发现.idea目录中的配置文件更新不及时,解决办法:涉及模块、目录结构的项目框架,少改!

idea右边栏maven配置中,子模块是否显示与根pom.xml中<module>标签的关系:

注释 <module>yudao-module-member</module> 并刷新maven(点击蓝色m按键)后,右边栏maven菜单中yudao-module-member子模块不再显示

http://www.ds6.com.cn/news/51790.html

相关文章:

  • 网站信息化建设合同徐州seo外包
  • 怎么把网站做的更好东莞市网络营销公司
  • 有什么牌子网站是响应式谷歌推广开户
  • 做网站武汉谷歌优化排名公司
  • 安装网络要多少钱seo查询百科
  • 建设银行官方网站下载品牌策划方案怎么做
  • 零基础制作公司网站教程成都seo整站
  • 安阳网站建设哪家便宜seo专业培训机构
  • 网站建设与维护 实验报告心得宣传网站站点最有效的方式是
  • 独立网站平台有哪些做网站
  • wordpress多域名更改seo还能赚钱吗
  • 唐山公司网站建设 中企动力免费制作小程序平台
  • 提升网站建设互联网推广是什么意思
  • 稻草人网站开发百度网站名称和网址
  • 网站盈利方式购买一个网站域名需要多少钱
  • 建设自己的企业网站需要什么资料google安卓手机下载
  • 郑州上市企业网站建设数据分析培训机构哪家好
  • 做毕业论文设计的网站品牌网络seo方案外包
  • 个人网站有哪些举例23岁老牌网站
  • 外贸公司论坛seo搜索排名优化
  • vs网站开发参考文献哪些网站有友情链接
  • 猪八戒兼职网站怎么做任务赚钱网站seo整站优化
  • 阿里云的网站建设好不好智慧软文
  • 特种证书查询入口seo快速排名的方法
  • 在线下单网站怎么做厦门seo顾问屈兴东
  • wordpress一定是主页吗seo网站有优化培训吗
  • 织梦系统网站首页upcache=1如何做网站营销
  • 怎么写网站规划方案最近国际时事热点事件
  • 网站建设哪家公司免费站推广网站2022
  • 香港做网站公司哪家好如何做营销活动