title: Spring MVC controller ignores "consumes" property
body: <p>I have the controller bellow:</p>
  
  <pre><code>@RestController
  @RequestMapping(value = "/v1/mail", consumes = {APPLICATION_JSON_VALUE})
  @ResponseStatus(OK)
  public class MailController {
  
      private CoreOutRestAdapter coreAdapter;
  
      @Autowired
      public MailController(CoreOutRestAdapter coreAdapter) {
          this.coreAdapter = coreAdapter;
      }
  
      @RequestMapping(method = POST)
      public void sendMail(@RequestBody @Validated Mail mail) {
          coreAdapter.sendMail(mail);
      }
  
  }
  </code></pre>
  
  <p>and jackson-databind 2.3.2 in classpath. But if I send POST request with Content-Type: application/json, returned response contains 415 status (Unsupported Media Type). I don't understand why controller ignores "consumes" property in @RequestMapping annotation. How can I fix this? Also, the rest of project you can find at github <a href="https://github.com/f1xmAn/scail" rel="nofollow">https://github.com/f1xmAn/scail</a></p>