- 传统web.xm中配置两个上下文+两个context对应的xml+两个上下文bean分别手动配置
- 传统web.xm中配置两个上下文+两个context对应的xml+
<mvc:annotation-driven />+ComponentScan
- 继承
AbstractAnnotationConfigDispatcherServletInitializer
或WebApplicationInitializer
- 基于javaconfig+
@EnableWebMvc
+WebMvcConfigurerAdapter
Spring 梳理 - 开启并配置 Spring MVC 的方法
猜你喜欢
转载自www.cnblogs.com/jiangtao1218/p/10226693.html
今日推荐
周排行