Skip to content

Commit

Permalink
spring boot 1.5 仅支持WebMvcConfigurerAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
saleson committed Sep 25, 2020
1 parent cacce6a commit 0f4372c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
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.
*/
@Configuration
@ComponentScan({"cn.springcloud.gray.server.resources"})
@Import(Swagger2Configuration.class)
public class WebConfiguration implements WebMvcConfigurer {
public class WebConfiguration extends WebMvcConfigurerAdapter {


@Autowired
Expand Down

0 comments on commit 0f4372c

Please sign in to comment.