Exemplo n.º 1
0
 @RefreshScope
 @Bean
 public LocaleChangeInterceptor localeChangeInterceptor() {
   final LocaleChangeInterceptor bean = new LocaleChangeInterceptor();
   bean.setParamName(this.casProperties.getLocale().getParamName());
   return bean;
 }
Exemplo n.º 2
0
 @Bean
 public HandlerInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor;
   localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("lang");
   return localeChangeInterceptor;
 }
 @Bean
 public LocaleChangeInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("locale");
   return localeChangeInterceptor;
 }
Exemplo n.º 4
0
 @Override
 public void addInterceptors(InterceptorRegistry registry) {
   LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("language");
   registry.addInterceptor(localeChangeInterceptor);
 }
 @Bean
 public LocaleChangeInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor lci = new LocaleChangeInterceptor();
   lci.setParamName("lang");
   return lci;
 }
 public static LocaleChangeInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("lang");
   return localeChangeInterceptor;
 }