Skip to content

Commit 0f4372c

Browse files
committed
spring boot 1.5 仅支持WebMvcConfigurerAdapter
1 parent cacce6a commit 0f4372c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/configuration/WebConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import org.springframework.context.annotation.Import;
1010
import org.springframework.web.servlet.config.annotation.CorsRegistry;
1111
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
12-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
12+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
1313

1414
/**
1515
* Created by saleson on 2017/7/5.
1616
*/
1717
@Configuration
1818
@ComponentScan({"cn.springcloud.gray.server.resources"})
1919
@Import(Swagger2Configuration.class)
20-
public class WebConfiguration implements WebMvcConfigurer {
20+
public class WebConfiguration extends WebMvcConfigurerAdapter {
2121

2222

2323
@Autowired

0 commit comments

Comments
 (0)