title: 415 Unsupported Media Type - Spring version
body: <p>I have this method on my controller:</p>
  
  <pre><code>@RequestMapping(value="/test", method = RequestMethod.POST)
  public @ResponseBody String test(@RequestBody Test test) {
      return test.getName();
  }
  </code></pre>
  
  <p>My Test class:</p>
  
  <pre><code>public class Test implements Serializable {
  
      private static final long serialVersionUID = -1150931681075770764L;
  
      private String name;
      public String getName() {return name;}
      public void setName(String name) {this.name = name;}
  }
  </code></pre>
  
  <p>I post this json using:</p>
  
  <pre><code>{"name": "avocado"}
  </code></pre>
  
  <p>I also have this annotation:</p>
  
  <pre><code>&lt;mvc:annotation-driven /&gt;
  </code></pre>
  
  <p>I'm using Advanced Rest Client to test it.
  My request's Content-Type is set to "application/json".</p>
  
  <p>If I set spring version to 4.0.9.RELEASE or earlier I get 200 OK code when post.</p>
  
  <p>If I set spring version to 4.1.0.RELEASE or later I get 415 Unsupported Media Type.</p>
  
  <p>What shoud I do in order to get code 200 setting spring version to 4.2.1.RELEASE?</p>