Tomcat modifies the Favicon.ico icon, the Linux tomcat modifies the Favicon.ico icon, and Tomcat changes the Favicon.ico icon
>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>
? Copyright Sweet Potato Yiu March 2, 2017
http://www.cnblogs.com/fanshuyao/
one, under Windows, put Favicon.ico on the root path of the project ( under the WebApp directory ), and then display the code on the Head label of the page:
Java code
- <link rel="shortcut icon" type="Image/ico" href= "${pagecontext.request.contextpath}/favicon.ico"/ >
- <link rel="bookmark" href="${pagecontext.request.contextpath}/favicon.ico"/>
Second, but to deploy the project to the Linux environment, the icon suddenly does not display. Need to replace the Favicon.ico in the Tomcat-7/webapps/root path, this favicon.ico icon is the Tomcat kitten icon by default
Third, directly copy the project root path under the Favicon.ico icon to the Linux environment under the Tomcat7/webapps/root directory:
Java code
- cp/home/java/tomcat7/webapps/finance/favicon.ico/home/java/tomcat7/webapps/root/
Iv. Deleting a tomcat temporary file
Java code
- rm-rf/home/java/tomcat7/work/*
V. Other operations that may be used:
1. Remove the Favicon.ico icon from the root file in Tomcat
Java code
- Rm-f/home/java/tomcat7/webapps/root/favicon.ico
Note: because the cache reason may not appear at the beginning of the icon, you need to clear the browser or multiple refresh page to display, or a few minutes and then reopen the browser refresh.
>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>
? Copyright Sweet Potato Yiu March 2, 2017
http://www.cnblogs.com/fanshuyao/
Tomcat modifies the Favicon.ico icon, the Linux tomcat modifies the Favicon.ico icon, and Tomcat replaces the Favicon.ico icon