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.
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
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.
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