1

New to spring boot and just wondering how does it find the Html files within the project. Is the a dependency I need or is it automatically configured when spring boot is added the maven project?

Mason Smith
  • 115
  • 1
  • 15
  • possible duplicate of [How to service external static HTML files in Spring Boot Embedded tomcat?](http://stackoverflow.com/questions/20064241/how-to-service-external-static-html-files-in-spring-boot-embedded-tomcat) – durron597 Aug 04 '15 at 02:14

2 Answers2

2

The default spring-boot path to static files is a folder named static saved in src/main/resources. See the spring documentation and example.

1

For static resources, the default path is /static;/public;/resources;/META-INF/resources.

If you want to change it, change this

spring.resources.static-locations=

htynkn
  • 104
  • 5