1.找到tomcat的server.xml(在conf目录下),找到:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
在host里面插入:
<Context path="" docBase="../webapps/MMS" debug="0"/>
MMS为项目名称
2.tomcat的web.xml(在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>
在这里编辑想要的首页