title: AngularJS GET request returning 404, though its accessible
body: <p>Firing AngularJS Rest URL as a GET request from AngularJS, its 
   returning 404 though its hitting the required method on server 
   side (spring implementaiton) and producing the desired Result</p>
  
  <p>Could somebody tell me what could be the problem ?</p>
  
  <p>Below is the method firing the angularjs request</p>
  
  <pre><code> getCredentials : function(){
               return $http.get('/helloRest/getUsername');
   } 
  </code></pre>
  
  <p>The above method results in the </p>
  
  <pre><code>   URL : http://localhost:8083/helloRest/getUsername
  </code></pre>
  
  <p>below is the stack traces</p>
  
  <pre><code> &lt;body&gt;
   &lt;h1&gt;HTTP Status 404 - /helloRest/getUsername&lt;/h1&gt;
   &lt;div class="line"&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status report&lt;/p&gt;&lt;p&gt;
   &lt;b&gt;message&lt;/b&gt; 
   &lt;u&gt;/helloRest/getUsername&lt;/u&gt;&lt;/p&gt;&lt;p&gt;
   &lt;b&gt;description&lt;/b&gt; 
   &lt;u&gt;The requested resource is not available.&lt;/u&gt;&lt;/p&gt;
   &lt;hr class="line"&gt;&lt;h3&gt;Apache Tomcat/8.0.37&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>