简体   繁体   English

如何更改Glassfish应用程序服务器的默认浏览器图标?

[英]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. 只需将favicon.ico图标添加到glassfish的docroot文件夹中,然后重新启动。

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: 如果它不起作用,则必须在default-web.xml glassfish文件中定义'ico'扩展名mime-type,这是通过在文件上添加以下代码来完成的:
<mime-mapping> <extension>ico</extension> <mime-type>image/vnd.microsoft.icon</mime-type> </mime-mapping>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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