title: What should be the value of image url in css file which is under resources folder and this resource folder is mapped as default servlet in spring?
body: <p>I am creating maven spring java web application. I placed a mapping in web.xml for default servlet which maps to the resources folder under web app folder. Now under this resources folder I have three folders : </p>
  
  <p>img, css, html.</p>
  
  <p>I have a jsp page under web-inf folder. From this jsp page I am pointing css and from css I am setting background image which is in img folder.</p>
  
  <p>css is getting included in jsp page successfully while background image is not getting loaded unable to resolve and find the accurate path for image to be defined under url() method.</p>
  
  <p>Below are my resources snippet: </p>
  
  <ol>
  <li><p>css file :</p>
  
  <h1>body {</h1>
  
  <pre><code>height : 70%;
  background-image: url('/resources/img/images1.jpeg'); 
  background-size:  cover;
  background-repeat: no-repeat;
  z-index: -1;
  </code></pre>
  
  <p>}</p></li>
  <li><p>web.xml :</p>
  
  <pre><code>&lt;servlet-mapping&gt;
  &lt;servlet-name&gt;default&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/resources/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre></li>
  </ol>
  
  <p>Please provide some solution and explain this concept of including images?</p>