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

http://i.stack.imgur.com/kbzpf.jpg

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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -