Open the service.xml of Tomcat and modify the Path property of the context tag under the host tag.
For example, if the path above is modified to be empty, then I visit http://localhost:8080/, then I jump directly to my Web application, which is BeikeBookV2.
If path is "/beikebookv2", then access the Web App by accessing Http://localhost:8080/BeikeBookV2.
<connector uriencoding= "UTF-8" connectiontimeout= "20000" port= "+" protocol= "http/1.1" redirectport= "8443"/> <connector uriencoding= "UTF-8" connectiontimeout= "20000" port= "+" protocol= "http/1.1" redirectport= "8443"/>
If we modify the connector tag in which the port is 80, then we can access the http://localhost/directly to access the application BeikeBookV2.
Long time no record learned things, although it is on-line learning, the back regardless of the contents of the book or the online learning of the small knowledge also try to record.
Tomcat changes localhost home page, map to app address