0

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:

enter image description here

This is my project directory hierarchy

enter image description here

This is my styles.css file:

enter image description here

My WebController class:

enter image description here

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.

enter image description here

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!

Pau Perez
  • 11
  • 2

0 Answers0