The first
The project into the webapp can be. Directly from the tomcat, visit.
The second
If you say, I do not want to project into the webapp directory tomcat, how to do it? Virtual path mappings can be used.
In the E: \ tool \ \ general \ Catalina at tomcat8 \ apache-tomcat-8.5.37 conf \ \ localhost path
Create a xml file. For example abc.xml
<Context path="/abc" docBase="C:\Users\Administrator\Desktop\javaweb_war_exploded" />
path and file name to remain the same, even if inconsistent, according to the file name will go,
with the back docBase true path, I put him in the desktop.
This should be okay. Http://127.0.0.1:8080/abc/ access to.
The third
In the E: \ tool \ tomcat8 \ general \ apache-tomcat-8.5.37 \ conf server.xml files found
Add a line: <Context path = "/ abc2" docBase = "E: \ IDEAworkspace \ javaweb \ out \ artifacts \ javaweb_war_exploded" /> access to http://127.0.0.1:8080/abc2/
Note: If you want to put the root directory,
1. placed in the root directory.
2.abc.xml name written ROOT, xml
3.path name to an empty string