网站log图片问题:favicon.ico
如何在地址栏中显示网站的图标 http://panyongzheng.iteye.com/blog/1152922
Tomcat中使用Favicon http://ispring.iteye.com/blog/165015
做好图片,上传到http://www.bitbug.net/,转换成16*16格式的ico图片,存放到站点根目录。
然后html增加如下代码:
在自己应用的web.xml或者tomcat的Conf下的web.xml中加入一下代码,然后重起tomcat。
1 2 3 4 5 6 7 8 9 |
Xml代码 <session-config> <session-timeout>60</session-timeout> </session-config> <mime-mapping> <extension>ico</extension> <mime-type>image/x-icon</mime-type> </mime-mapping> |