第一步:
找到安装Tomcat的目录$Apache Software Foundation/Tomcat 5.5/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>
把其中如下代码删除
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
第二步:
找到<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
把<param-value>false</param-value>改为<param-value>true</param-value>
重启Tomcat服务器即可