title: How to access static resources when mapping a global front controller servlet on /*
body: <p>I've mapped the Spring MVC dispatcher as a global front controller servlet on <code>/*</code>.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet&gt;       
    &lt;servlet-name&gt;home&lt;/servlet-name&gt;         
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;     
  &lt;/servlet&gt;  
  &lt;servlet-mapping&gt;       
    &lt;servlet-name&gt;home&lt;/servlet-name&gt;         
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;     
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>However, this mapping stops the access to static files like CSS, JS, images etc which are all in the <code>/res/</code> folder.</p>
  
  <p>How can I access them anyway?</p>