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

I have a web application deployed to tomcat. When I open the application in a browser, the image in front of the URL in the address bar and the image in front of the application header on the tab show the tomcat image. I want to change this and place my own logo in both places. How can i do this?

+6
source share
1 answer

This image is called favicon.ico and is located in your tomcat installation in

$ -cat at 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> 
+9
source

Source: https://habr.com/ru/post/901284/


All Articles