title: My css files don't get loaded
body: <p>I'm going crazy why my css file isn´t getting loaded. I'm using <code>spring mvc 4</code> + <code>apache tomcat 8</code></p>
  
  <p>I already use the same code for other projects and it works normally.<br>
  Here's my project structure</p>
  
  <p><img src="https://i.stack.imgur.com/vPL63.png" alt="enter image description here"></p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"&gt;
  
    &lt;display-name&gt;AO&lt;/display-name&gt;
  
  
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;hibernate.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;mvc-dispatcher-servlet.xml&lt;/param-value&gt;
          &lt;/init-param&gt; 
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>my servlet context :    </p>
  
  <pre><code>&lt;context:component-scan base-package="controller"/&gt;
  &lt;mvc:annotation-driven /&gt;
  
  &lt;mvc:resources mapping="/RESOURCES/**" location="/RESOURCES/" /&gt;  
  
  &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/pages/" /&gt;
      &lt;property name="suffix" value=".jsp" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>when he try to load :</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/RESOURCES/css/welcome.css" &gt; 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/RESOURCES/css/welcome.css"&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="/AO/RESOURCES/css/welcome.css"&gt;
  </code></pre>
  
  <p>i got this error:</p>
  
  <pre><code>GET http://localhost:8080/AO/RESOURCES/css/welcome.css 404 (Introuvable) 
  </code></pre>