Tomcat中更改网站根目录和默认页的配置方法

来源:互联网 发布:描述算法的方式 编辑:程序博客网 时间:2024/04/29 22:30

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>

在这里编辑想要的首页
 
阅读全文
0 0
原创粉丝点击