I have used spring boot with Thymeleaf (thymeleaf starter dependency is added).
The css files are places under src/main/resources/static
and the
html files are placed under src/main/resources/templates
The spring main class is annotated with @SpringBootApplication
(As usual).
Say in First controller for /ui
, I am returning index.html. It loads the CSS.
Say in a method for Url "ui/video/viewAll", I am returning abc.html
(with content- fragment concept - using the same layout of index.html. Seems css files are loaded for this html alone.
Not sure why this behaviour? Can anybody explain why is this happening?