34212131 发表于 2017-1-12 09:38:23

设置tomca访问页面直接是指定页面

两步
第一步:修改tomcat配置文件,server.xml
在<host></host>之间添加以下内容
<Context path="" docBase="/usr/local/apache-tomcat7.0.59/webapps/mywebapp" debug="0" reloadable="true" />

第二步:修改自己工程的web.xml 添加以下内容路径为自己工程中需要访问的页面路径
<welcome-file-list>
          <welcome-file>jsp/test/index.jsp</welcome-file>
      </welcome-file-list>

页: [1]
查看完整版本: 设置tomca访问页面直接是指定页面