Spring Boot

How to set Spring boot favicon image

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 :)

Found a mistake or something out of date? Tell us →

Written by

chandrashekhar

Founder of onlinetutorialspoint.com. Enterprise architect with 15+ years in healthcare technology, designing and running systems on AWS and Azure. Writes about building real things with AI, local AI hardware and cloud certifications.

Keep reading

Ask a question or leave a comment