简体   繁体   中英

How to change glassfish application server default browser icon?

我们可以为在glassfish服务器下运行的应用程序设置默认的浏览器选项卡图标吗?

Here is the solution:

Simply add the favicon.ico icon to the docroot folder of glassfish, and restart.

If it did not work, then, you have to define the 'ico' extension mime-type in your default-web.xml glassfish file, this is done by adding the following code on the file:
<mime-mapping> <extension>ico</extension> <mime-type>image/vnd.microsoft.icon</mime-type> </mime-mapping>

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