title: Spring mvc request mapping returns Http Status 404 instead of String
body: <p>I have a REST service based on Spring MVC. I have defined a method to support GET as follows: </p>
  
  <pre><code>@RequestMapping(method=RequestMethod.GET, value="/resource/{id}")
      @ResponseBody
      public String getResource(@PathVariable int id) {
          System.out.println("GET Resources for Project ID: "+id);
  
          ResponseV responseV=new ResponseV();
          DataVO data=new DataVO();
          allResources=resourceServiceImpl.getResource(id);
          data.setPeopleList(allResources);
          responseV.setData(data);
  
          XStream xstream = new XStream();       
          xstream.autodetectAnnotations(true);
          String output_getRes = xstream.toXML(responseV);
          System.out.println(output_getRes);
          return output_getRes;
      }
  </code></pre>
  
  <p>The service should return string when i place an url like: <code>http://localhost:8077/proj/service/resource/0</code> .. But it gives a 404 status error. the ouptut is retruned properly in the console but i get 404 in browser window.. any help ?</p>