コード例 #1
0
 @RefreshScope
 @Bean
 public LocaleChangeInterceptor localeChangeInterceptor() {
   final LocaleChangeInterceptor bean = new LocaleChangeInterceptor();
   bean.setParamName(this.casProperties.getLocale().getParamName());
   return bean;
 }
コード例 #2
0
 @Bean
 public HandlerInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor;
   localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("lang");
   return localeChangeInterceptor;
 }
コード例 #3
0
 @Bean
 public LocaleChangeInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("locale");
   return localeChangeInterceptor;
 }
コード例 #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;
 }
コード例 #6
0
 public static LocaleChangeInterceptor localeChangeInterceptor() {
   LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
   localeChangeInterceptor.setParamName("lang");
   return localeChangeInterceptor;
 }