修改conf\web.xml,把listing设置为false
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>false
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
转载于:https://www.cnblogs.com/QDuck/archive/2006/09/01/492292.html