Tomcat跳过默认页面跳转到指定页面

来源:互联网 发布:全国道路矢量数据 编辑:程序博客网 时间:2024/06/05 08:14
1:修改server.xml:
<Host name="localhost"  appBase="webapps"            unpackWARs="true" autoDeploy="true">

后添加:

<Context path="" docBase="D:/tools/java/apache-tomcat-7.0.52/webapps/smartcollege/" debug="0"/>

2:修改web.xml:

<welcome-file-list>后添加指定的页面

<welcome-file>login.jsp</welcome-file>




0 0