In this tutorials I am going to show how to set Spring boot favicon .ico in Spring boot application.

Spring boot favicon :

In spring boot it is very easy to set favicon.ico, here I am giving simple to steps to achieve this.

Step 1 : Generate your favicon.ico file, if you do not have here.

Step 2 : And place the created favicon.ico file under class path location. Spring boot checks for the default/classpath location to set the favicon.ico file.

We should place the favicon.ico file in appropriate location like below resources/static/.

 

Spring Boot Favicon

 

Step 3 : Run the application

Refresh web page (Ctrl+f5)

Spring Boot Favicon output

Reference :

spring boot favicon docs

Happy Learning 🙂