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?
Asked
Active
Viewed 1,557 times
1
-
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 Answers
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.

Mateus Milanez
- 117
- 4
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