mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-06 04:18:07 +00:00
fix 修复 WebMvc自动配置 优先于 国际化配置 Bean覆盖问题
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.ruoyi.common.web.config;
|
||||
|
||||
import com.ruoyi.common.web.core.I18nLocaleResolver;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
||||
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.LocaleResolver;
|
||||
@@ -11,6 +13,7 @@ import org.springframework.web.servlet.LocaleResolver;
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Configuration
|
||||
@AutoConfigureBefore(WebMvcAutoConfiguration.class)
|
||||
public class I18nConfig {
|
||||
|
||||
@Bean
|
||||
|
Reference in New Issue
Block a user