title: Unable to load js into html
body: <p>I have written spring mvc project
  I have written following in my context.xml to locate resources</p>
  
  <pre><code>&lt;mvc:resources mapping="/resources/**" location="/resources/" /&gt;
  &lt;mvc:resources mapping="/resources/**" location="/resources/js/" /&gt;
  </code></pre>
  
  <p>also I tried </p>
  
  <pre><code>&lt;mvc:resources mapping="/resources/**" location="/resources/" /&gt;
  &lt;mvc:resources mapping="/resources/js/**" location="/resources/js/" /&gt;
  </code></pre>
  
  <p>Following is my html file.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Home Page&lt;/title&gt;
  &lt;script
  src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/resources/js/studentApp.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Following is a directory structure</p>
  
  <p><img src="https://i.stack.imgur.com/OjCGB.png" alt="enter image description here"></p>
  
  <p>In javascript console it shows,</p>
  
  <blockquote>
    <p>GET //localhost:8080/resources/js/studentApp.js 400 (Bad Request) </p>
  </blockquote>
  
  <p>Why it is not loading/not found studentApp.js? Please make correct if I am wrong :)</p>
  
  <p>Thank you.</p>