- , I created a work Web project, and when the project is completed and deployed on the server, the entire work project is packaged into a war package, such as
- In addition to being able to run on Eclipse, the tool will help us to automatically deploy on the server, we can also deploy manually, such as the war package in the D:\tomcat\apache-tomcat-6.0.47\webapps directory (in the case of Tomcat server), Then start the server and you can deploy it normally.
- Whether the tool is deployed automatically or manually, after the server starts, it extracts the project file, which is the Work.war package,
- When the Web project was successfully deployed, we opened the work file,
- The directory here is the same as the content in the WebContent directory, and the source code in Java resources is not deployed to the server, only the classes in the Web-inf have. class compiled files. So when we deploy the Web project to the server, others can not see our source code, but the normal use of the software, that is, all the source code should be placed under the SRC package, and HTML, JS, CSS and other files should be placed under the WebContent file.
Eclipse Dynamic Web Project Project Catalog