The deployment of the project is typically to place the project's compressed files under the WebApps of the Tomcat installation directory, accessed by typing: http://localhost:8080/xx (assuming native access, XX is the access name of the application project at the time of deployment). And if you type directly: http://localhost:8080 will come out of the Welcome page of Tomcat, how to make typing http://localhost:8080 out of their own application engineering page.
After Tomcat is installed by default, Tomcat's home directory is the Webapps/root directory, so if you want to change Tomcat's home directory, you can do the following:
The first: (assuming Tomcat is installed under C, Project name bidding) Open C:/tomcat/conf/server.xml, add code between
Second: All files under the root of the Tomcat installation directory are deleted, and then all the extracted files are copied into the project.
It is recommended to use the first one only once, and when the code is updated, simply copy the war package to the WebApps directory and start Tomcat.