Published items can be placed under the webapps/in the Tomcat installation directory, but sometimes our catalog is ready to be mapped in the past.
1, go to tomcat/conf/, open server.xml
2, find
Unpackwars= "true" autodeploy= "true" >
<!--Singlesignon valve, share authentication between Web applications
Documentation at:/docs/config/valve.html--
<!--
<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>
-
<!--Access log processes all example.
Documentation at:/docs/config/valve.html
Note:the pattern used is equivalent to using pattern= "common"-
<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"
prefix= "Localhost_access_log" suffix= ". txt"
pattern= "%h%l%u%t "%r" %s%b "/>
</Host>
3, from here can see, the default directory is in WebApps, modify directory point, add Name:
<context docbase= "Your project's absolute address" path= "" reloadable= "true"/>
4, the full host
Unpackwars= "true" autodeploy= "true" >
<!--Singlesignon valve, share authentication between Web applications
Documentation at:/docs/config/valve.html--
<!--
<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>
-
<!--Access log processes all example.
Documentation at:/docs/config/valve.html
Note:the pattern used is equivalent to using pattern= "common"-
<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"
prefix= "Localhost_access_log" suffix= ". txt"
pattern= "%h%l%u%t "%r" %s%b "/>
<context docbase= "******" path= "" reloadable= "true"/>
5, restart Tomcat, first Shutup, then startup
How a published JSP project is displayed locally