当前位置:   article > 正文

IDEA 多模块项目报错 Cannot Save Settings 问题

IDEA 多模块项目报错 Cannot Save Settings 问题

IDEA 多模块项目报错 Cannot Save Settings 问题

Cannot Save Settings:
Module "spring_cloud_sentinel_demo"
must not contain source root "D:\java_test\Intesij_idea\spring_cloud_sentinel_demo\order_service_rest\src\main\resources".
The root already belongs to module "order_service_rest"
  • 1
  • 2
  • 3
  • 4

1、错误信息描述:

我们经常复制项目的时候,会出现很多问题,可能会多次重复复制删除子模块,在进行模块操作时,出现以下问题:

Cannot Save Settings
Module “spring_cloud_sentinel_demo”
must not contain source root “D:\java_test\Intesij_idea\spring_cloud_sentinel_demo\order_service_rest\src\main\resources”.
The root already belongs to module “order_service_rest”

在这里插入图片描述

2、解决办法:

1)打开 idea ,依次点击【文件】(File),【项目结构】(Project Structure)。

在这里插入图片描述

2)在【项目结构】(Project Structure)菜单下,点击【模块】(Modules),再点击 父工程(不是出现问题的子工程),找到【排队项】(Excluded),把包含出现错误的子工程信息,全部删除。点击【提交】(Apply)【确定】(OK)。

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/537562
推荐阅读
相关标签
  

闽ICP备14008679号