WebMvcAutoconfiguration内部静态类WebMvcAutoConfigurationAdapter实现了WebMvcConfigurer接口,重写了一些方法,也就是默认对Spring Mvc进行了一些配置:


该静态类上有个**@Import**注解:
@Import(EnableWebMvcConfiguration.class)

它的父类DelegatingWebMvcConfiguration,

通过注入的方式,把容器中所有实现了WebMvcConfigurer的bean注入到configurers中,而this.configurers.addWebMvcConfigurers(configures)执行逻辑如下:

也就是把List传给WebMvcConfigurer的成员变量delegates.
当底层调用WebMvcConfigurerComposite的方法时,会遍历delegates进行调用:












![2023年中国锂电池X-Ray及CT检测设备市场竞争格局及行业市场规模前景分析[图]](https://img-blog.csdnimg.cn/img_convert/3add79f0aa8f65eeba214287ff70b841.png)







