thymeleaf - Stylesheets in new Spring MVC 4 -


I started a new web project in Spring MVC 4 (Spring Boot) and my question is that I have my CSS files Why should you keep it? I am using my folder structure as tememelif template engine and image Enter image details here

As you can see, I am trying to create a CSS folder under the Resources folder, but the link and lt; Any relation is not working from link.html = "stylesheet" href = "/ resources / css / main.css" /> index.html?

To:

By default the Spring Boot service will be provided in the classpath Or static content from the root of Seltocontext / static (or / public / or / or resources / META-INF / resources).

There is a sample or two, e.g.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -