<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 5/30/17 11:52 AM, Sobotka Martin
      wrote:</div>
    <blockquote type="cite"
cite="mid:328F845B29DA3548857D132B08C3047FC1F484@SWELO05MXS.welo.corp00.com">
      <pre wrap="">     <mvc:interceptors>
                <bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
                        <property name="paramName" value="Lang"/>
                        <property name="languageTagCompliant" value="true"/>
                        <property name="ignoreInvalidLocale" value="true"/>
                </bean>
        </mvc:interceptors>
        <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
                <property name="cookieName" value="locale"/>
                <property name="languageTagCompliant" value="true"/>
        </bean>
        [...]

</pre>
    </blockquote>
    <br>
    I haven't reviewed the Spring MVC docs in awhile on this, but their
    LocaleResolver impls usually take a 'defaultLocale' property which
    sets the default if it is otherwise unspecified.  You can even see
    this in one of our examples (expand the 2nd one):<br>
    <br>
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/IDP30/Switching+locale+on+the+login+page">https://wiki.shibboleth.net/confluence/display/IDP30/Switching+locale+on+the+login+page</a><br>
    <br>
    They don't really mention this in the Spring Framework locale docs
    [1],  so might be helpful to look at the actual Javadocs for the
    various concrete LocaleResolver impl classes, which are mostly
    linked from here [2].  Looks like the AcceptHeader-, Cookie- and
    Session- ones all do, either directly in the impl or via the
    abstract base class AbstractLocaleResolver.<br>
    <br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="http://docs.spring.io/spring/docs/4.3.7.RELEASE/spring-framework-reference/html/mvc.html#mvc-localeresolver">http://docs.spring.io/spring/docs/4.3.7.RELEASE/spring-framework-reference/html/mvc.html#mvc-localeresolver</a><br>
     <br>
    [2]
<a class="moz-txt-link-freetext" href="http://docs.spring.io/spring/docs/4.3.7.RELEASE/javadoc-api/org/springframework/web/servlet/LocaleResolver.html">http://docs.spring.io/spring/docs/4.3.7.RELEASE/javadoc-api/org/springframework/web/servlet/LocaleResolver.html</a><br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>