For me I had to remove the static reference to the stylesheet for it to work in thymeleaf.
So
Became
I spent hours trying all sorts of configurations and file path renaming. Don't know why but this is the only thing that got my css and js to load in Spring Boot 5.