title: Content type not supported issue
body: <p>When i send with <code>Postman</code> a post request with JSON body (<code>application/json</code>) i got this error in <code>spring-mvc</code> (i am not using <code>spring boot</code>)</p>
  
  <pre><code>Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json' not supported
  </code></pre>
  
  <p>I tried all SO topics about this error but nothing works :(</p>
  
  <p>I have include also the dependencies for <code>Jackson</code> in my <code>pom.xml</code> to map JSON objects into POJOs.  </p>
  
  <p>So why it keeps telling me <code>Content type 'application/json' not supported</code> !</p>
  
  <p>My controller</p>
  
  <pre><code>@RestController
  public class FooRest {
      // even with consumes=MediaType.APPLICATION_JSON_VALUE it does not work
      @RequestMapping(value = "/api/foo", method = RequestMethod.POST)
      public String foo(HttpServletRequest request, @RequestBody FooBean bean) {
          ...
      }
  }
  </code></pre>
  
  <p>My config</p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  @ComponentScan({"controllers"})
  public class AppConfig implements WebMvcConfigurer { }
  </code></pre>
  
  <p>My <code>pom.xml</code></p>
  
  <pre><code>&lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;${springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.13&lt;/version&gt;
      &lt;/dependency&gt;
  
      ...
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>curl version</p>
  
  <pre><code>POST /MY-API HTTP/1.1
  Host: 127.0.0.1:8080
  Content-Type: application/json
  Cache-Control: no-cache
  Postman-Token: 89859e26-813d-fb53-8726-57900f02207e
  
  { 
     //JSON OBJECT
  }
  </code></pre>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>I changed </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
      &lt;version&gt;1.9.13&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>To</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
      &lt;version&gt;2.9.8&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And it works finally :) can someone explain me why ?</p>