By default, Spring Boot serves static content from the src/main/resources/static, src/main/resources/public, src/main/resources/resources, and src/main/resources/META-INF/resources directories. You can also customize the static content location using the spring.resources.static-locations property. Reference: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-spring-mvc-static-content