title: Spring MVC @RequestMapping headers can accept only one value?
body: <p>This will work:</p>
  
  <pre><code>@RequestMapping(value = "/test", method = RequestMethod.POST,
      headers = {"content-type=application/json"}) {
      .......
  }
  </code></pre>
  
  <p>If I add another value to it like the following, then it will fail and tell me this:</p>
  
  <blockquote>
    <p>The specified HTTP method is not allowed for the requested resource
    (Request method 'POST' not supported)</p>
  </blockquote>
  
  <pre><code>@RequestMapping(value = "/test", method = RequestMethod.POST,
      headers = {"content-type=application/json","content-type=application/xml"}) {
      .......
  }
  </code></pre>
  
  <p><br>
  I guess this is because Spring thinks the two <em>content type</em> values have "AND" relationship but instead I want them to be "OR".</p>
  
  <p>Any suggestions?  </p>
  
  <p>Thanks!</p>