title: Required String parameter is not present
body: <p>I want to send post request from my Android apps to Spring Boot. I use okhttp to send the HTTP post request in JSON. The code is like this:</p>
  
  <p>Every time I send post request using the Android request I got 400 bad request parameter 'name' is not present","path":"/newcustomer". But when I use postman it works.</p>
  
  <pre><code>    Java
      ----------------------------------------------------------------
      Log.d("okhttphandleruserreg", "called");
      MediaType JSON = MediaType.parse("application/json; charset=utf-8");
      JSONObject jsonObject = new JSONObject();
      try{
          jsonObject.put("name", name);
          jsonObject.put("email", email);
          jsonObject.put("username", username);
          jsonObject.put("password", password);
          jsonObject.put("month", month);
          jsonObject.put("dayOfMonth", dayOfMonth);
      } catch (JSONException e) {
          e.printStackTrace();
      }
      RequestBody body = RequestBody.create(JSON, jsonObject.toString());
  
      Request.Builder builder = new Request.Builder();
      builder.url(params[0]);
      builder.post(body);
      Request request = builder.build();
  
      Spring Boot
      -----------------------------------------------------------------
      @RequestMapping(value = "/newcustomer", method= RequestMethod.POST)
      public Customer newCust(@RequestParam(value="name") String name,
                          @RequestParam(value="email") String email,
                          @RequestParam(value="username") String username,
                          @RequestParam(value="password") String password,
                          @RequestParam(value="month") int month,
                          @RequestParam(value="dayOfMonth") int dayOfMonth
  )
  </code></pre>