IntelliJ IDEA run method did not come out

disposed inside the open module settings

 

 

 

 

This time we want to understand the meaning of these things, this knowledge is very, very important and must be.


Sources are generally used to designate similar src directory that can be compiled. Sometimes we do not only project src directory to be compiled, there are other special directory Maybe we have to be compiled as a directory, you need to make your mark in this directory. This catalog can be compiled only Sources can create a new Java classes and packages, it is important to remember.
Tests can be used to label general compilation unit test directory. In maven project structure specification, the top-level directory is src, src maven of us are not set to Sources, but in java directory and its subdirectories main directory, we will set Sources. The unit tests directory is src - test - java, java directory where we will set Tests, indicating that the directory is compiled as a unit test directory. The general and we are all behind several configured under maven project, but I'm still here to talk about. From this we can see support for IntelliJ IDEA project maven than thorough.
Resources are generally used to label the resource file directory. In maven project, resource directory is a separate division out of its directory: src - main -resources, where the resources directory we'll set Resources, indicating that the directory is a resource directory. File in the resource directory will be compiled into lower output directory.
Test Resources are generally used for labeling the resource file directory unit testing. In maven project, resource directory unit testing is a separate division out of its directory: src - test -resources, where we'll resources directory is set to Test Resources, indicates that the directory is a unit testing resource directory. File in the resource directory will be compiled into lower output directory.
Excluded are generally used to label the exclusion list. Excluded directory will not be IntelliJ IDEA to create the index, the equivalent of abandoned IntelliJ IDEA, code files in that directory is not available code inspection and smart tips and other conventional code feature. 
Through the above description, we know that for as long as non-maven project we will set the src can be.


As shown in FIG arrows, labeled directory will have a general summarized on the right. Although Excluded directory where the classes, but it has a special nature, can not be displayed here.

Where you want to create a new Java class, is set to give src can be friends.
 

Published 316 original articles · won praise 33 · views 210 000 +

Guess you like

Origin blog.csdn.net/yz18931904/article/details/104331715