在{tomcat_home}/conf/web.xml中,把listings参数设置成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>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
修改完成后重启服务
标签:禁止,false,Tomcat,listings,目录,参数设置 From: https://www.cnblogs.com/-yuanzheng/p/17527664.html