First, export the war package
1, a pilot project of the war package (idea, for example)
Point + number, select
After point ok, OK, close the window and return to the main page idea
In the pop-up window, select the new war, the election build
After the export directory in war, find the address where the war package
Two, tomcat deployment
1, enter tomcat main page, select Manager App, this time will let you enter a password, set password see the bloggers https://blog.csdn.net/h273979586/article/details/84675300
2, project deployment
Click on deployment, you can access up to my project as an example, the access path for the HTTP: // localhost: 8080 / "Project name" / path specific projects
3. How to Enter a project name without direct access
A method (not recommended):
The war unpack all content placed in the ROOT directory of the tomcat webapps (delete ROOT directory contents, remember to back up), because the ROOT directory is loaded by default. So tomcat has started, visit this page will load
Method Two:
Find server.xml in the conf directory of tomcat added (deleting the original <Host> tag)
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false"> <!-- path留空代表访问域名后面不需要带项目的名称 --> <Context path="" docBase="apollo-erp-web" reloadable="false" /> </Host>