I have a Spring Boot project on IntelliJ, everything works fine but my html pages are not connecting to the css file. If I open the html in the browser from it folder the style is applied to the html file, but inside the project this is not happening.
This is one of my html files:
This is my project directory hierarchy
This is my styles.css file:
My WebController class:
Does anybody knows what is happening? The CSS plugin is bundled in my project and I have checked the needed plugins but it does not work.
When I open the html files from my project folder in the files system, the html file works with the CSS style, but from the IntelliJ proyect it DOES NOT
I have put the styles.css file into a new folder "static" outside the "templates" folder, but the problem perssists
Thank you in advanced!