...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/**"/> <bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"> <property name="paramName" value="lang"/> </bean> </mvc:interceptor> </mvc:interceptors> |
Here we enabled changing the locale based on the URL query string parameter lang
. This will be persisted to the cookie, if you configured it above.
...