javaweb项目的lib中没有放jar包,为什么部署到tomcat后,在lib下有jar包呢?
黄舟
黄舟 2017-04-18 10:54:48
0
6
844

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(6)
左手右手慢动作

Haha, guys, use Eclipse. Pay attention to your project. There is a "Java EE6 Libraries", which is a Java EE library that Eclipse automatically adds for you when you create a Web Project. It will automatically copy to the tomcat directory for you.

阿神

The web project you created is automatically imported. Look at the names of the jar packages and Baidu to find out the specific contents.

Peter_Zhu

You are too unprofessional. After packaging, it will automatically add the jars you depend on under the lib

小葫芦

This is the jar package that eclipse automatically imports based on the project you built

大家讲道理

This is the function of IDE. You should be using MyEclipse, which comes with JavaEE6 library, which is some jar packages related to Java WEB development. You only need to add this library to the project dependent jar package during project configuration. IDE It will automatically introduce these jar packages for you, and the jar packages in your own lib should be placed in the external jar packages that are not provided by the IDE. The external jar packages that you imported manually
In the same way, you can also create a library yourself, so that you After adding your custom library to the project, the lib will still be empty, but these jar packages will still be output to the specified directory (the default is WEB-INF/lib) when exporting the project

洪涛

Delete the test under your webapps. . . . Try redeploying test in eclipse

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template