title: How to get spring MVC to completely ignore the Accept Header
body: <p>I have a pretty standard Spring MVC configuration using  and .</p>
  
  <p>I have a login page wired up to login.html using the following:</p>
  
  <pre><code>@RequestMapping(value = "/login.html", method = RequestMethod.GET)
  public ModelAndView login(HttpSession session)
  </code></pre>
  
  <p>The problem I am having is that unless the user agent requesting the page sends an Accept header of "text/html" they are getting back a 404.  We have some clients with a browser configuration that is sending */* and they can't get to our site.</p>
  
  <p>Furthermore, the HTTP spec states that if the Accept header is not presented, then it should be assumed that the user agent accepts */*</p>
  
  <p>So my question is, how do I get Spring MVC to not check the Accept header at all when matching the request to my handler?  I would like the mapping to work regardless of what Accept value they send and even if the Accept value is left off completely.</p>