title: Issue with RequestMapping POST API?
body: <p>I can't fiure out what I am doing wrong here.  I am using the app "Postman" to send a request to a service.  The parameter is a very simple POJO shown below.  When I attempt to send the request I get a response: "The server refused this request because the request entity is in a format not supported by the requested resource for the requested method"</p>
  
  <p>Class used for request:</p>
  
  <pre><code> public class LoginAttempt {
  
          private String userName;
          private String password;
          public String getUserName() {
              return userName;
          }
          public void setUserName(String userName) {
              this.userName = userName;
          }
          public String getPassword() {
              return password;
          }
          public void setPassword(String password) {
              this.password = password;
          }
      }
  </code></pre>
  
  <p>API in controller:</p>
  
  <pre><code>@RequestMapping(value="/validate", method=RequestMethod.POST, produces="application/json") 
  public boolean validateUser(@RequestBody LoginAttempt login) {
      System.out.println("Login attempt for user " + login.getUserName() + login.getPassword());
      return true;
  }
  </code></pre>