title: Any simple way to test a @RequestBody method?
body: <p>If I have a <code>@Controller</code> method whose parameter is a <code>@RequestBody</code> param, I usually have to write some jQuery script or something similar to perform an AJAX request with <code>JSON</code> object in order to call that method. If I tried calling that method via a web browser directly, it returns with a Error <code>415 Unsupported Media Type</code>. </p>
  
  <p>Is there any alternative to just quickly call such method using browser without having to write some <code>jQuery</code> code? Like perhaps a way to write the <code>JSON</code> object in the <strong>URL/address bar?</strong></p>
  
  <p>code:</p>
  
  <pre><code>@RequestMapping("testCall")
  @ResponseBody
  public List&lt;TestObject&gt; getTestCall (@RequestBody TestParams testParams) {
    return stuff;
  }
  
  public class TestParams {
    private Integer testNumber;
    //getter/setter for testNumber
  }
  </code></pre>
  
  <p>I thought maybe I could just do:</p>
  
  <pre><code>http://localhost/testCall?testNumber=1
  </code></pre>
  
  <p>maybe Spring would auto populate a new TestParams instance with that property set to 1 but that didnt work...</p>
  
  <p>maybe I need to do something extra for that?</p>