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、错误信息描述:
我们经常复制项目的时候,会出现很多问题,可能会多次重复复制删除子模块,在进行模块操作时,出现以下问题:
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)。
