找到配置文件如下
conf/web.xml --> tomcat的Web配置文件
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context docBase="E:\Tomcat\apache-tomcat-9.0.22\webapps" path="" debug="0" reloadable="true" />
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
</Host>
value改成 true就行了!
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
————————————————
配置如下图:
![0](/i/l/?n=22&i=blog/1374811/202209/1374811-20220922234545347-679111284.png)