Loading static resources with Spring Boot and Thymeleaf

前端 未结 2 1579
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 13:54

I want to get my static resources loaded. First I thought it already works, but that was just a trick of browser cache. I only get the html-files loaded as expected, but I d

相关标签:
2条回答
  • 2020-12-15 14:13

    Okay, that helped me:

    In WebMvcConfig I changed WebMvcConfigurationSupport to WebMvcAutoConfigurationAdapter

    enter image description here

    If you want to know about more about that module, better overview you find Stackoverflow-Link

    0 讨论(0)
  • 2020-12-15 14:34

    You don't need static in the path. Try /css/bbs-login.css.

    0 讨论(0)
提交回复
热议问题