1234567891011121314151617181920212223242526 |
- package com.steerinfo.dil.interceptors;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.context.support.ReloadableResourceBundleMessageSource;
- import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
- import org.springframework.web.servlet.i18n.SessionLocaleResolver;
- import java.util.Locale;
- /**
- * @Author zhangnan
- * @Date 2021/4/23 8:19
- * @Version 1.0
- */
- @Configuration
- public class MyLocaleChangeInterceptor {
- //国际化配置
- @Bean
- public LocaleChangeInterceptor localeChangeInterceptor(){
- return new LocaleChangeInterceptor();
- }
- }
|