title: Spring REST controller post request
body: <p>I have this controller in spring </p>
  
  <pre><code>@RestController
  public class GreetingController {
  
      @RequestMapping(value = "/greeting",  method = RequestMethod.POST)
      public String greeting(@RequestParam("uouo") String uouo) {
          return uouo;
      }
  }
  </code></pre>
  
  <p>and when I testing it </p>
  
  <pre><code> curl -k -i -X POST -H "Content-Type:application/json"  -d uouo=test http://192.168.1.104:8080/api/greeting
  </code></pre>
  
  <p>the result of the testing </p>
  
  <p>HTTP Status 400 - Required String parameter 'uouo' is not present</p>
  
  <p>I tried may thing, but I think <code>@RequestParam</code> can't use for POST it always passed the parameter in URL using GET, I use post only if I had object JSON as parameter using <code>@RequestBody</code>, is there any way to make string parameter send using POST?</p>