Tomcat配置
时间:2008-12-19 来源:zyme007
==============修改默认路径================
修改conf/server.xml,找到
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="D:\tomcat5\webapps\market" debug="0"
reloadable="true" crossContext="true">
</Context>
</Host>
增加context部分就可以了.docBase=你的项目路径
==============修改默认页================
修改conf/web.xml
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
在其中增加默认页
相关阅读 更多 +