Home > Back-end >  Small white questions the IDEA in the same project in different classes in the module can't cre
Small white questions the IDEA in the same project in different classes in the module can't cre

Time:09-24

Just learned basic contact IDEA not familiar with this software a different class of the module of project can call each other? Such as there is A class A in module1 I can directly in the code of module2 newA object? For big solutions

CodePudding user response:

Add dependent module can
The project structure - & gt; Modules - & gt; Dependiences

CodePudding user response:

In the pom file like introducing other jars you need put that project since you need to rely on,



Just need the three corresponding to the
Such I moduleA is

I need to quote in the moduleB wrote

Then can not directly use the
  • Related