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


    一.错误的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:copycloudcloud-consumer-dept-feignsrc	estjava". 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模块的设置中移除

    显示恢复正常

  • 相关阅读:
    commons-logging.jar 和 log4j.jar 的关系
    百钱买百鸡
    reflect
    golang结构体、接口、反射
    golang文件操作
    sqlx使用说明
    go example
    goroutine
    生成二维码
    method&interface
  • 原文地址:https://www.cnblogs.com/eternityz/p/12239591.html
Copyright © 2020-2023  润新知