title: Cannot change HTTP accept header - use a different locale resolution strategy
body: <p>I follow Spring mvc course on Pluralsight, and I have "Cannot change HTTP accept header - use a different locale resolution strategy" this error when running my application.
  Before this, I added theese beans to servlet-config.xml</p>
  
  <pre><code>&lt;mvc:interceptors&gt;
      &lt;bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="language" /&gt;
  &lt;/mvc:interceptors&gt;         
  
  &lt;bean id="localResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver" p:defaultLocale="en" /&gt;
  </code></pre>
  
  <p>In resource folder I have two files. messages_es.properties and messages.properties. One has<code>goal.text=Minutos Ejercicio para el día de hoy:</code> and other <code>goal.text=Minutes Exercise For The Day Today:</code>
  So the target is to choose the language.</p>
  
  <p>And in jsp file I have this line about it </p>
  
  <p><code>Language : &lt;a href="?language=en"&gt;English&lt;/a&gt; | &lt;a href="?language=es"&gt;Spanish &lt;/a&gt;</code></p>
  
  <p>So how can I make it work correctly?</p>