如何删除tomcat的默认图标? [英] How do you remove tomcat's default favicon?

查看:171
本文介绍了如何删除tomcat的默认图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Tomcat 6似乎为我的Web应用程序提供了一个默认图标-tomcat徽标.我的webapp根目录中没有favicon.ico,也没有提到我的web.xml关于favicon的任何内容.我甚至在我的web.xml中有一个用于* .ico的映射,它映射到默认的servlet,但仍在显示.如何删除该tomcat网站图标?

Tomcat 6 seems to be providing a default favicon for my webapp - the tomcat logo. I don't have a favicon.ico in my webapp root, nor does my web.xml mention anything about a favicon. I even have a mapping in my web.xml for *.ico that goes to the default servlet, but it is still showing. How can I remove that tomcat favicon?

我知道我可以通过几种方式来指定一个图标,以覆盖此默认图标.我正在尝试找出(如果可能的话)如何防止tomcat添加的默认图标,从而没有图标.

I know I can specify a favicon in several ways to override this default icon. I'm trying to find out how (if possible) to prevent the default favicon that tomcat adds and thus have no favicon.

推荐答案

删除或重命名tomcat/webapps/ROOT/favicon.ico,Tomcat将在其服务的每个Web应用程序的根目录中查找一个favicon.ico.您无需在每页的开头部分加一个.

Delete or rename tomcat/webapps/ROOT/favicon.ico and Tomcat will look for a favicon.ico in the root of each web app that it serves. You don't need to put a into the head section of each page.

这篇关于如何删除tomcat的默认图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆