After tomcat modify the default home page, under the preceding item into tomcat, browser add input ip port directly to the project home page

1, the project will put the tomcat webapps folder

 

2, modify the server.xml under conf, find 

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">

Join in the Host tag 

<Context docBase="project/myProject" path="" reloadable="true" debug="0" privileged="true">
</Context>

------- project / myProject preceding project index.html file is the folder location

3, if you pre-stage project, the home is not called index.html, web.xml under the modified conf

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

 


 

Guess you like

Origin www.cnblogs.com/angdh/p/10987738.html