本文介绍了如何更改在Tomcat中部署的Web应用程序在浏览器标题栏中显示的徽标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在tomcat中部署了一个Web应用程序.当我在浏览器中打开应用程序时,地址栏中URL之前的图像和选项卡上应用程序标题之前的图像都显示了tomcat图像.我想更改此设置,并在两个地方都贴上我自己的徽标.我该怎么办?
I have a web application deployed in tomcat. When I open the application in a browser, the image before the URL in the address bar and the image before the title of the application on the tab both show the tomcat image. I want to change this and put in my own logo in both the places. How can I do that?
推荐答案
此映像称为favicon.ico
,可在您的tomcat安装中的
This image is called the favicon.ico
and is found in your tomcat installation under
$ tomcat-home \ webapps \ ROOT
$tomcat-home\webapps\ROOT
只需将其替换为保存为favicon.ico
Just replace it with your own icon image saved as favicon.ico
在代码中尝试
<head>
<link rel="shortcut icon" href="http://www.yoursite.com/favicon.ico">
</head>
这篇关于如何更改在Tomcat中部署的Web应用程序在浏览器标题栏中显示的徽标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!