IDEA adds a small note on the process of using jar packages
Dingdu! Here is the compilation of Xiao Ah Woo's study course materials. A good memory is not as good as a bad pen. Today is also a day to make progress. Let's advance together!
IDEA adds a small note on the process of using jar packages
通过Libraries添加jar包过程:
1. Open File -> Project Structure (Ctrl + Shift + Alt + S)
For newly imported projects, related jar packages in the lib directory will be automatically imported. We need to delete these automatically added jar packages, as shown in the figure:
[The specific jar package to be deleted depends on the actual situation of the individual. 】
2. Click Libraries -> "+" -> "Java" -> select the main directory of the project we imported, and click OK
注意:在弹出的方框中点击“Cancel”,取消将其添加到Module中。
At this point, the lib directory is created successfully, delete the extra content added in the directory, and re-add the required jar package.
At this point, Libraries are successfully created.
The jar package is successfully added as shown in the figure:
3. Go back to the Modules menu, select the previously imported project, click "Dependencies", click "+" -> "Library", add the successfully created Library directory just now
4. Other related jar packages (such as tomcat related jar packages) that are not in the project lib directory can also be added in this way.
As for the sauce, all jar packages have been added successfully!
Ending!
More course knowledge learning records will come later!
就酱,嘎啦!
Note:
Life is diligent, nothing is gained.