Home  >  Q&A  >  body text

javaweb项目的lib中没有放jar包,为什么部署到tomcat后,在lib下有jar包呢?

黄舟黄舟2743 days ago821

reply all(6)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:56:48

    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.

    reply
    0
  • 阿神

    阿神2017-04-18 10:56:48

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 10:56:48

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:56:48

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:56:48

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:56:48

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

    reply
    0
  • Cancelreply