When we create a Java Web project in eclipse, JRE system library and referenced libraries will be generated, and web app libraries will not be generated. The following will
Brief description.
In fact, these three are the collection of jar packages.
JRE system library mainly stores j2se standard jar, which generally does not need to be adjusted.
Referenced libraries stores third-party jar packages, that is, self-imported jar packages. Configure it in libraries in the Java build path of the Project attribute. I understand,
Here, the jar package is imported and configured to enable the WEB Project to be properly compiled in the eclipse development environment without any errors .. If the web project uses eclipse to generate a war package,
Is not exporting its jar package to the WEB-INF/lib folder.
The main function of web app libraries is to let eclipse export war package, it will export all the jar or project references under its directory to the WEB-INF/lib File
Folder. The Java EE module dependencies configuration of the jar package in the web app Libraries project attribute in eclipse. If you hook up or add an external jar
Packages are generated under the WEB-INF/lib folder. Of course, if you directly in the WEB-INF/lib folder, copy a jar to enter, refresh, web app Libraries
A jar reference is automatically added. To put it simply, the Java EE module dependencies configuration is only for web app libraries.