第一步:
找到安装Tomcat的目录$Apache Software Foundation/Tomcat 5.5/conf/web.xml,然后打开找到如下代码
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
把其中如下代码删除
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
第二步:
找到<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
把<param-value>false</param-value>改为<param-value>true</param-value>
重启Tomcat服务器即可
最后
以上就是动听小猫咪最近收集整理的关于如何设置Tomcat目录浏览的全部内容,更多相关如何设置Tomcat目录浏览内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复