tomcat 的web.xml 配置文件中有一个属性值 listing (Directory Listing) ,这个属性值是控制是否展示虚拟目录;

默认配置下,改值是 false,即不对外展示文件虚拟目录(这么做是为了安全考虑);

tomcat 的 web.xml 文件中的 listings 属性值

================================================================

如果想直接展示虚拟目录,可以设置该属性的值为 true,然后重启tomcat

tomcat 的 web.xml 文件中的 listings 属性值

相关文章:

  • 2021-07-09
  • 2022-12-23
  • 2021-09-19
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案