首页 > 其他分享 >tomcat webapp下的图片txt无法访问

tomcat webapp下的图片txt无法访问

时间:2022-09-22 23:58:28浏览次数:52  
标签:tomcat 配置文件 无法访问 webapp txt true

 

找到配置文件如下

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  

标签:tomcat,配置文件,无法访问,webapp,txt,true
From: https://www.cnblogs.com/fengquan-blog/p/16721250.html

相关文章