You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
473 B

package com.yuxue.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
/**
* 自定义配置
* @author yuxue
* @date 2019-06-13
*/
@Configuration
public class DefaultMvcConfig {
/**
* 国际化配置
* 设置区域信息
* @return
*/
@Bean
public LocaleResolver localeResolver(){
return new MyLocaleResolver();
}
}