title: Spring 2.5 localeChangeInterceptor somehow did not work
body: <p>I'm trying to use localeChangeInterceptor to load different language depends on the locale, but somehow it never changes. It is always the defaultLocale.</p>
  
  <p>Here is how I set up the beans</p>
  
  <pre><code>&lt;bean id="localeResolver"
      class="org.springframework.web.servlet.i18n.SessionLocaleResolver"&gt;
      &lt;property name="defaultLocale" value="en" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="localeChangeInterceptor"
      class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
      &lt;property name="paramName" value="language" /&gt;
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping" &gt;
      &lt;property name="interceptors"&gt;
         &lt;list&gt;
          &lt;ref bean="localeChangeInterceptor" /&gt;
         &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;!-- Register the message.properties --&gt;
  &lt;bean id="messageSource"
      class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
      &lt;property name="basename" value="message" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>The URL I use to access different locale is:</p>
  
  <pre><code>    http://localhost:8080/something/message/login?language=zh_CN
  </code></pre>
  
  <hr />
  
  <p>I think I have a reason why it isn't working, it is because I'm use annotation for URL mapping. So is there another way to setup the localeChangeInterceptor with annotation?</p>