1. Modify the Tomcat icon for the entire project
Locate the Tomcat root directory (tomcat-webapps-root directory), then overwrite the modified Favicon.ico icon with the local icon, then restart the project, refresh, clear the browser cache, and then access the view icon to see if it has changed.
Do not change the other, sometimes after the launch, the browser has not changed, try a few more times, and then change the browser to try. I have tried several times and then changed the browser to appear the result;
The result of the appearance of this way: as long as the project is started, the access to the page icon will change ;
2. Modify the Tomcat icon for some pages
Add the following code to the page where you want to modify the icon in the project's directory, and then specify the change icon, to start the project to access the specified page to see if the icon has changed:
Place the modified icon in a specified file (relative paths are written)
Different icons appear when you visit different pages:
1) Access the Edit Icon page
2) Access the Edit Icon page
How the Java Web Project modifies the Favicon.ico icon