org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
例如:
@Configuration
public class WebMvcConfg extends WebMvcConfigurationSupport {
//你的其他配置,重写方法后配置
}
@Configuration
public class WebMvcConfg implements WebMvcConfigurer {
//你的具体实现及配置
}
地址:https://www.leftso.com/article/720.html