title: how to pass custom dto as rest api input using postman rest client
body: <p>Here is my code ,I'm trying to pass the user details as a json input but I'm not able to receive the data in my rest api method. I"m getting all values as null, </p>
  
  <p>this is my json request </p>
  
  <pre><code>{
      "userId" : "12345",
      "username" : "arun.ammasai",
      "createdBy" : "-2",
      "updatedBy" : "-2",
      "statusCd" : "New",
      "createdDate" : "2019-03-03",
      "updatedDate" : "2019-03-03"
  }
  </code></pre>
  
  <p>====================================================================</p>
  
  <pre><code>@RequestMapping(value = "/registerUser", method = RequestMethod.POST, consumes = { "application/JSON", "application/XML" })
  private String registerUser(User user) {
      System.out.println(user.toString());
      return "User Created";
  }
  </code></pre>
  
  <p>====================================================================</p>
  
  <p>here is the response in Postman Client </p>
  
  <p>Unexpected 'U'</p>