The first method: ()
Configuring Web Apps with related profile Server.xml under Tomcat
1. Open the Server.xml file under Conf in the Tomcat directory
2. Add <Context> elements between <Host></Host>. For example, the Web App Mywebproject under D:\WebTest\, which can be written like this:
<context path= "/test" docbase= "D:\WebTest\MyWebProject"/> save Server.xml.
3. Start Tomcat.
4. The browser opens, the address bar enters "http://localhost:8080/test", you can access the Mywebproject project.
Similar to this method, there is another way, the time relationship will be available next time to write.
The second method:
Copy the Web app to the specified directory
1. Copy the Web App folder to the WebApps directory under the Tomcat installation directory.
2. Then start the Tomcat server.
3. The browser opens, and the address bar is entered as a "http://serverIP:port/appsName" url, such as "Http://localhost:8080/myWebProject".
Deploy Web to Tomcat