Spring MVC 5.0 框架中,弃用了
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
例如:
@Configuration
public class WebMvcConfg extends WebMvcConfigurationSupport {
//你的其他配置,重写方法后配置
}
例如:
@Configuration
public class WebMvcConfg implements WebMvcConfigurer {
//你的具体实现及配置
}
http://blog.xqlee.com/article/720.html