IDEA adds a small note on the process of using jar packages

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!
Insert picture description here

IDEA adds a small note on the process of using jar packages

 通过Libraries添加jar包过程:

1. Open File -> Project Structure (Ctrl + Shift + Alt + S)

Insert picture description here

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.
Insert picture description here

Insert picture description here

2. Click Libraries -> "+" -> "Java" -> select the main directory of the project we imported, and click OK

Insert picture description here

Insert picture description here
Insert picture description here

注意:在弹出的方框中点击“Cancel”,取消将其添加到Module中。

Insert picture description here

Insert picture description here

At this point, the lib directory is created successfully, delete the extra content added in the directory, and re-add the required jar package.
Insert picture description here
Insert picture description here

Insert picture description here

At this point, Libraries are successfully created.

The jar package is successfully added as shown in the figure:

Insert picture description here
Insert picture description here

3. Go back to the Modules menu, select the previously imported project, click "Dependencies", click "+" -> "Library", add the successfully created Library directory just now

Insert picture description here

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!

Insert picture description here

Ending!
More course knowledge learning records will come later!

就酱,嘎啦!

Insert picture description here

Note:
Life is diligent, nothing is gained.

Guess you like

Origin blog.csdn.net/qq_43543789/article/details/109145600