Spring Thymeleaf Bootstrap CSS

后端 未结 2 466
谎友^
谎友^ 2021-02-13 13:14

I\'m trying to use Bootstrap CSS with my Spring + Security + Thymeleaf web application. The CSS gets picked up the by my custom login screen and everything is fine - all styles

2条回答
  •  一个人的身影
    2021-02-13 13:31

    Figured it out ... schoolboy error on my part ...

    The following link in my home.html file wasn't resolving to the right location:

    
    

    So instead, I used context-relative URL as follows:

    
    

    And this did the trick.

提交回复
热议问题