This commit is contained in:
77
2024-05-23 18:02:19 +08:00
parent ac7625a7c3
commit 9bf4851980
7 changed files with 10 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
/**

View File

@@ -1,10 +1,7 @@
package com.ruoyi.web.config;
import com.ruoyi.dk.service.HomeSettingService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.LocaleResolver;
import javax.servlet.http.HttpServletRequest;
@@ -18,11 +15,11 @@ import java.util.Locale;
* @version 1.0.0
* @since 2023/06/15 09:41
**/
@Configuration
//@Component
public class I18nConfig implements LocaleResolver {
@Autowired
private HomeSettingService homeSettingService;
// @Autowired
// private HomeSettingService homeSettingService;
/**
* 根据请求中的Accept-Language头部解析出语言设置。