title: Using both @RequestMapping and @ModelAttribute on a method
body: <p>Is it possible to use both <code>@RequestMapping</code> and <code>@ModelAttribute</code> annotations on the same method in a Spring MVC Controller?</p>
  
  <p>For example I'd like to obtain something like:</p>
  
  <pre><code>@ModelAttribute("export_profiles")
  @RequestMapping(value = "/profiles_list", method = RequestMethod.GET)
  public @ResponseBody
  ExportProfile[] getExportProfilesList() {
      edService.getProfiles();
  }
  </code></pre>
  
  <p>I'd like to use this approach because, in my page I have to load a list of <code>ExportProfile</code>s as <code>option</code>s into a <code>select</code>. In the same page I can create/delete export profiles, so I have to refresh the profiles list in my select, and I'd like to do this asynchronously using an ajax call to the same metod.</p>
  
  <p>Is it possible to use a single method to set a model attribute and to handle asynchronous requests? Or do I have to use two different methods?</p>