For tomcat, the project is placed in the root folder under the webapps folder, which contains some default Tomcat pages. Then you can:
1. delete all the original files and copy the project to be deployed;
2. If it is just a static page, you can copy it first, then modify the Web. xml file under the WEB-INF folder, add the following statement in the file:
<Welcome-file-List>
<Welcome-File> jsgame2.html // This is the page to open
</Welcome-File>
</Welcome-file-List>
After such modification, enter http: // localhost: 8080/or (http: // ip address: 8080/) in the address bar /) you can directly open the specified project or page.
Note: Modify the web. the XML file uses editplus. After modification, a Web file is generated. XML. bak file, which is web. XML backup files can be directly used after the suffix is modified. This backup file is automatically generated by editplus. If you do not want it to automatically generate a backup file, you can make the following modifications:
Editplus-tool-parameter-file (File root node)-create backup check when saving the file
Certificate -----------------------------------------------------------------------------------------------------------------------------------------
Two methods: 1. Copy your project to webapps and change your project name to root.
2. Set the virtual path. Modify the tomcat/CONF/server. xml file at the bottom of
<Context Path = "" DEBUG = "0" docbase = "decision path of your project" reloadable = "true">
</Context>
</Host>
</Engine>
</Service>
</Server>