java - Unable to load CSS in Spring Mavenized project -
There is a problem in CSS path in my project. It is a file structure of a Spring Maven project
I have written:
& lt; Link rel = "stylesheet" href = "/ treninky / css / bootstrap.css" />
But it still does not work. I am not getting any solution Can anyone help me?
Add it to your web.xml
& lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; Default & lt; / Servlet-name & gt; & Lt; URL pattern & gt; * CSS. & Lt; / Url pattern & gt; & Lt; / Servlet-mapping & gt;
And it is better to move your CSS to another directory like src / main / resources
or it is not that there is no such thing in the web-INF < P>
Comments
Post a Comment