In my Spring Boot project I cannot get static resources such as css, images and java script file via web browser. Where is proper place to put whole bootstrap dictionary, or how to configure to get desired resources?
Asked
Active
Viewed 333 times
-1
-
2Possible duplicate of [CSS not loading in Spring Boot](http://stackoverflow.com/questions/21203402/css-not-loading-in-spring-boot) – Sami Kuhmonen Mar 28 '16 at 12:21
1 Answers
0
Just create static
folder in src/main/resources
here: https://github.com/bajdekm/MailingHero/tree/master/src/main/resources and place them all there. If you don't create controller with mapping to root resource (something like @RequestMapping("/")
), spring boot will serve static content from index.html
automatically.

luboskrnac
- 23,973
- 10
- 81
- 92