title: Trying to get mvc resources to serve my static resources
body: <p>I'm developing locally using both jetty and tomcat.</p>
  
  <p>My images, css, javascript files are in:</p>
  
  <pre><code>/src/main/webapp/assets
  </code></pre>
  
  <p>where the folder assets has:</p>
  
  <pre><code>/src/main/webapp//assets/images
  /src/main/webapp//assets/css
  /src/main/webapp//assets/images/
  </code></pre>
  
  <p>My spring config file has:</p>
  
  <pre><code> &lt;mvc:resources mapping="/assets/**" location="/" /&gt;
  </code></pre>
  
  <p>I'm confused as to what both mapping and location mean?</p>
  
  <p>I think mapping means that that spring will only try and serve the static files if it has the url with the pattern like:</p>
  
  <pre><code>www.example.com/assets/
  </code></pre>
  
  <p>What does location do?</p>
  
  <p>My html currently has:</p>
  
  <pre><code>src="/assets/images/logo.gif"
  </code></pre>
  
  <p>I've tried playing with the location value, and I don't get to render the image for some reason.</p>
  
  <p>Can someone clear this up for me?</p>