提交 752464dc 编写于 作者: 武汉红喜's avatar 武汉红喜

optimise

上级 dcb0ae46
......@@ -20,7 +20,7 @@ import javax.servlet.DispatcherType;
*/
@Configuration
@EnableConfigurationProperties(UserConfig.class)
public class AppConfig {
public class AppConfiguration {
@ConditionalOnProperty(value = "api.auth.enabled")
@Profile({"dev", "prod"})
......
......@@ -27,7 +27,7 @@ import static springfox.documentation.schema.AlternateTypeRules.newRule;
@ConditionalOnClass(EnableSwagger2.class)
@EnableSwagger2
@Configuration
public class SwaggerConfig {
public class SwaggerConfiguration {
@Autowired
private TypeResolver typeResolver;
......
......@@ -13,9 +13,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.i18n.AbstractLocaleResolver;
import org.springframework.web.servlet.i18n.CookieLocaleResolver;
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
import org.springframework.web.servlet.support.RequestContextUtils;
import javax.servlet.http.HttpServletRequest;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册