title: Spring error - No mapping found for HTTP request with URI
body: <p>I want to allow a logged in user to access a page and automatically retrieve the modules assigned to them. So to that end I used the @PathVariable with the id as value.</p>
  
  <p>My controller</p>
  
  <pre><code>    @RequestMapping(value="/main/user/setter/settingpage/{id}", method = 
  
      RequestMethod.GET)  
      public String showStaffModules(@PathVariable("id") Integer id, ModelMap map, 
  
      HttpServletRequest request) {
  
             map.addAttribute("cp", request.getContextPath());
  
             map.addAttribute("Setter", userService.getWithModules(id));
  
             return "/main/user/setter/settingpage";
  </code></pre>
  
  <p>So far though an error keeps coming up:</p>
  
  <pre><code>    WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP 
  
      request with URI [/app/main/user/setter/settingpage] in DispatcherServlet with 
  
      name 'appServlet'
  </code></pre>
  
  <p>The page that is being requested is in the right location but it's not being returned. Would anyone know why? Thanks.</p>