java - How tomcat deploys the jar packages required by the war package
世界只因有你
世界只因有你 2017-06-30 09:54:46
0
5
1174

The deployed war package is placed in the webapps folder. I now have a war package that needs the support of an external jar package. Where should the jar package be placed?~


Even those two projects require the top jar package. I don’t know if it is a jar package. Anyway, it requires more than 100 MB of that package. I’m not good. Put them all in the project

世界只因有你
世界只因有你

reply all(5)
给我你的怀抱

Change the suffix to .zip, put the jar under /WEB-INF/lib, and then change it back to .war

小葫芦

eclipse --> export -->war --> Check Export source files

漂亮男人

Extract the war package, then put the jar package under WEB-INF/lib/, and then put the entire decompressed folder under webapps, such as test.war. The decompressed folder is test, and the jar package is placed Go to test/WEB-INF/lib/ and copy the test folder there;
Just start tomcat

漂亮男人

The answers above are all correct, but I personally feel that this is not a solution to the problem. Why don't you use maven, a tool for managing jar packages of java projects? You need to configure the jars you need in the pom.

小葫芦

The easiest thing is to repackage.
The war package will also be decompressed into a directory when placed in tomcat. If compilation is not required, put it directly into the WEB-INF/lib directory of that directory.
Another way is to use maven to manage and repackage without copying

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!