简体   繁体   中英

How to change tab icon in Spring MVC project?

标签图标

How and where can I change it in Spring MVC project?

Put the favicon.ico in the root of your webapp (the webapp folder, like this ).

Out of habit in SpringMVC, I also put the following mapping.

<mvc:resources location="/favicon.ico" mapping="/favicon.ico" />

Add <link rel="shortcut icon" href="/directory/to/filename.png"> to your .jsp file. Like so:

在此处输入图片说明

Here's the directory where tab_icon.png is located:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM