Conf: stores the configuration file of the Tomcat server. The most important is the server. xml file;
Logs: stores the log files of the Tomcat server;
Temp: stores temporary files during Tomcat running;
Webapps: web application release directory;
Work: Tomcat's working directory. By default, the servlet files generated by compiling JSP files are stored in this directory;
Lib: stores the JAR files that Tomcat servers and all Web applications need to access.
So, can I directly publish the web Project to the Tomcat webapps directory when Eclipse starts the Tomcat server? Of course. However, before that, we did not ask where to release the project in Eclipse? In fact, Eclipse Automatically releases the Web Project to the current workspace by default 【. metadata \. plugins \ org. eclipse. wst. server. under the core \ tmp0 \ wtpwebapps folder, you can find it in the workspace, and you will soon find the Web project folder you created. For example, my Web project name is [DynamicWebProject01 ]. Then, the folder will contain all the content of the Web project, such as: folder [META-INF, WEB-INF], create. JSP files, WEB-INF files under the classes, lib and other folders and web. xml. Among them, there are compiled Java classes under classes.
, Copy to the webapps of Tomcat.
,
http://localhost:8080/webdemo
The file content is the same as that of the second method. The parameter meaning is the same.
The three deployment methods have their own advantages and disadvantages.