找到配置文件如下
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>
————————————————
配置如下图: 标签:tomcat,配置文件,无法访问,webapp,txt,true From: https://www.cnblogs.com/fengquan-blog/p/16721250.html