springBoot学习笔记-09-MVC扩展


接管SpringMVC.

@EnableWebMvc.

在自定义的WebMvcConfig类上加上这个注解表示,全面接管MVC配置

DelegatingWebMvcConfiguration 作用是 从容器中获取所有的WebMvcConfig

当我们使用@EnableWebMvc这个注解,将会导入DelegatingWebMvcConfiguration 这个类,由于这类是继承自 WebMvcConfigurationSupport,所以WebMvcAutoConfiguration会失效


文章作者: liuminkai
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 liuminkai !
评论
 上一篇
springBoot学习笔记-10-国际化(i18n) springBoot学习笔记-10-国际化(i18n)
国际化(Internationalization,i18n). 必须保证 项目编码为UTF-8 国际化信息配置:MessageSourceAutoConfiguration 国际化请求解释器:AcceptHeaderLocaleResol
2020-09-18
下一篇 
springBoot学习笔记-08-Thymeleaf模板引擎 springBoot学习笔记-08-Thymeleaf模板引擎
Thymeleaf模板引擎. 本文转载自:https://fanlychie.github.io/post/thymeleaf.html 添加启动器.<dependency> <groupId>org.springfr
2020-09-14
  目录