title: Using both @RequestBody and @RequestParam together in spring mvc3
body: <p>I am using spring-mvc <strong>3.1.0.RELEASE</strong> and for some reason, mapping POST with query params and request body does not work.</p>
  
  <p>Here is how my controller method looks:</p>
  
  <pre><code>  @RequestMapping(method = POST, value = "/post-to-me/") 
    public void handlePost(
      @RequestBody Content content,
      @RequestParam("param1") String param1,
      @RequestParam("param2") String param2
    ){
         //do stuff       
    }
  </code></pre>
  
  <p>However, if I convert all the request params to path params, mapping works. Has anyone run into something similar?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
   "does not work" == 404 when I try doing, <code>POST /post-to-me?param1=x&amp;param2=y</code></p>