Spring 5后的WebMvcConfigurerAdapter 提示deprecated

public class MvcConfig extends WebMvcConfigurerAdapter {
 
 }
改
public class MvcConfig implements WebMvcConfigurer {