首页 > 其他 > 详细

idea中当前模块资源目录上显示属于其他模块

时间:2020-01-29 10:36:54      阅读:70      评论:0      收藏:0      [点我收藏+]

一.错误的2个显示

1.错误显示

src/main目录下的java和resources本来属于cloud-consumer-dept-feign模块
但是在src/main/java却是显示src/main/java[cloud-consumer-dept-80]
但是在src/main/resources也是显示src/main/resources[cloud-consumer-dept-80]

技术分享图片

### 2.在 Project Structure中设置报错

技术分享图片

设置之后保存,会报错
module "cloud-consumer-dept-feign" must not contain source root "D:\copy\cloud\cloud-consumer-dept-feign\src\test\java". The root already belongs to module "cloud-consumer-dept-80"

二.错误原因

在cloud-consumer-dept-80的Project Structure设置中多了cloud-consumer-dept-feign的资源目录

技术分享图片

三.解决方法

将属于cloud-consumer-dept-feign的资源目录从cloud-consumer-dept-80模块的设置中移除

技术分享图片

显示恢复正常

技术分享图片

idea中当前模块资源目录上显示属于其他模块

原文:https://www.cnblogs.com/eternityz/p/12239591.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!