-1

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?

kryger
  • 12,906
  • 8
  • 44
  • 65
M. Bajdek
  • 21
  • 1
  • 4
  • 2
    Possible 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 Answers1

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.

Here is relevant section of Spring Boot documentation.

luboskrnac
  • 23,973
  • 10
  • 81
  • 92