zhuce 发表于 2017-2-7 10:47:34

Tomcat为什么访问应用根目录访问到index.jsp,应用没配置welcome-file-list

  找了半天
  Tomcat 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>
  用eclipse的,可在Servers项目里的web.xml修改,会同步的Tomcat下
页: [1]
查看完整版本: Tomcat为什么访问应用根目录访问到index.jsp,应用没配置welcome-file-list