Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Spring MVC 项目中如何以及在哪里可以更改它?
将 放在favicon.ico你的 webapp 的根目录中(webapp 文件夹,像这样)。
favicon.ico
在 SpringMVC 中出于习惯,我也放了以下映射。
<mvc:resources location="/favicon.ico" mapping="/favicon.ico" />
添加<link rel="shortcut icon" href="/directory/to/filename.png">到您的 .jsp 文件中。像这样:
<link rel="shortcut icon" href="/directory/to/filename.png">
这是 tab_icon.png 所在的目录: