init
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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头部解析出语言设置。
|
||||
|
||||
Reference in New Issue
Block a user