JSP و CSS [message #1832580] |
Mon, 21 September 2020 10:23 |
Elliott Jonasson Messages: 1 Registered: September 2020 |
Junior Member |
|
|
Hello
I want to write a Spring MVC project.
In the web directory I created a directory called assets and then a directory called css and put all my css files in it
Now when I use <link rel = "stylesheet" href = "../ assets / css / style.css"> on the JSP page in the head tag, my style does not apply to the form
I also used the <link rel = "stylesheet" href = "<c: url value =" / assets / css / style.css "/>"> command, but my css did not work again
In the spring-servlet.xml file I also added <mvc: resources mapping = "/ assets / **" location = "/ assets / css /" /> but it did not work
(I did not use maven)
Is there a solution?
|
|
|
Powered by
FUDForum. Page generated in 0.07516 seconds