LocaleChangeInterceptor allows for changing the current locale when receives an http request containing the specified param name.
@Override public void addInterceptors(InterceptorRegistry registry) { LocaleChangeInterceptor l = new LocaleChangeInterceptor(); l.setParamName("localeCode"); registry.addInterceptor(l); }