How to change the logo displayed in the title bar of browser for a web application deployed in tomcat?

三世轮回 提交于 2020-01-01 09:49:09

问题


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?


回答1:


This image is called the favicon.ico and is found in your tomcat installation under

$tomcat-home\webapps\ROOT

Just replace it with your own icon image saved as favicon.ico

In code try

<head>
<link rel="shortcut icon" href="http://www.yoursite.com/favicon.ico"> 
</head>


来源:https://stackoverflow.com/questions/8092009/how-to-change-the-logo-displayed-in-the-title-bar-of-browser-for-a-web-applicati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!