title: How to send post request with spring @RequestBody in rest client
body: <p>I have a class Person.</p>
  
  <pre><code>class Person{
  Integer id;
  String firstName;
  String lastName;
  //other params, constructors, getters &amp; setters
  }
  </code></pre>
  
  <p>&amp; My method is </p>
  
  <pre><code>    @RequestMapping(value = "/test", method = RequestMethod.POST)
      public void testPerson(
              @RequestBody Person person){
  ...
  }
  </code></pre>
  
  <p>Now I need to test it using rest client. I tried setting up “request header” section of the Firefox plugin to have a “name” = “Content-Type” and “value” = “application/x-www-form-urlencoded”
  &amp; then add parameters in body,</p>
  
  <pre><code>id=1&amp;firstName=aaa&amp;lastName=bbb
  </code></pre>
  
  <p>but it's giving 404.</p>