简体   繁体   English

IntelliJ 如何将模块添加到现有模块

[英]IntelliJ how to add module to existing module

I am trying to add new microservice in my project.我正在尝试在我的项目中添加新的微服务。 I want it under Microservices module, but when I click Microservices -> add new module (loan-service) it appears over my Microservices module, but not nested inside it as a part of Microservices module.我想要它在微服务模块下,但是当我单击微服务-> 添加新模块(贷款服务)时,它出现在我的微服务模块上,但没有作为微服务模块的一部分嵌套在其中。 在此处输入图片说明

Even more in the left panel navigation this module is not showing.更重要的是,在左侧面板导航中,此模块未显示。 Is this the right way of doing things or am I missing anything这是做事的正确方式还是我错过了什么

Make sure you specify the correct content root (highlighted yellow and green) when adding a module .确保在添加模块时指定正确的内容根(突出显示为黄色和绿色)。

You can also group different modules in the Project Structure dialog without actually creating a parent module for them - the group will be visible in the Project tool window (red underlined).您还可以在 Project Structure 对话框中对不同的模块进行分组,而无需为它们实际创建父模块 - 该组将在 Project 工具窗口中可见(红色下划线)。

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM