From 0f4372cd89018038615b45bf6ad0ce33d4a971fb Mon Sep 17 00:00:00 2001 From: saleson Date: Sat, 26 Sep 2020 00:47:41 +0800 Subject: [PATCH] =?UTF-8?q?spring=20boot=201.5=20=E4=BB=85=E6=94=AF?= =?UTF-8?q?=E6=8C=81WebMvcConfigurerAdapter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gray/server/configuration/WebConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/WebConfiguration.java b/spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/WebConfiguration.java index 317a9f7f..d04221b1 100644 --- a/spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/WebConfiguration.java +++ b/spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/WebConfiguration.java @@ -9,7 +9,7 @@ import org.springframework.context.annotation.Import; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** * Created by saleson on 2017/7/5. @@ -17,7 +17,7 @@ @Configuration @ComponentScan({"cn.springcloud.gray.server.resources"}) @Import(Swagger2Configuration.class) -public class WebConfiguration implements WebMvcConfigurer { +public class WebConfiguration extends WebMvcConfigurerAdapter { @Autowired