1.Sort jar files
2.Set the compiled jar packages as user libraries in eclipse.
Window-> preferences-> JAVA-> build path-> User Libraries
3.Add the Required User Library to the project.
If Tomcat is required during project development, add the project to Tomcat classpath In the Tomcat plug-in; otherwise, classnotfoundexception is reported.
The procedure is Windows> preferences> Tomcat> advanced.
However, when published to tomcat or packaged, the system does not add the jar package in the user library. Therefore, you must set deployment assembly in the project properties,
To add the added user library, select Properties-deployment assembly-Java bulid path entries to import the user Library (Java EE module dependencies earlier than 3.6.
After the above settings, you can manage jar files well, and you do not need to copy the jar files again in the project, saving space and ease of management.