Spring 通过两条路径配置 WebMVC 配置
- Bean org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport 不存在时, 使用 org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
- 使用 WebMvcConfigurationSupport
- 应用配置类继承 WebMvcConfigurationSupport 并覆方法实现定制
- 应用提供 org.springframework.web.servlet.config.annotation.WebMvcConfigurer 实现,并添加 @EnableWebMvc 注解,由 DelegatingWebMvcConfiguration 完成配置