I am using spring boot for making a website. I'd like to use my own login page and style it using CSS. However, the CSS does not get linked to the HTML page (powered by thymleaf) property.
Base on the defined CSS, I expect to get a red background colour for the login page, but this does not happen. Moreover, when the login proceed successfully, instead of get redirected to the index.html, it shows me style.css
I really appreciate if someone could help me to figure out how to link the css file properly to the html file
When I click on the go back (<--) button the style get applied:
Debugger When I want to login:
Debugger after login:
Debugger after clicking on the go back button: