1. 传统web.xm中配置两个上下文+两个context对应的xml+两个上下文bean分别手动配置
  2. 传统web.xm中配置两个上下文+两个context对应的xml+<mvc:annotation-driven />+ComponentScan
  3. 基于Servlet容器的SCI,继承AbstractAnnotationConfigDispatcherServletInitializer  或  WebApplicationInitializer
  4. 基于javaconfig+@EnableWebMvc+WebMvcConfigurerAdapter

 

参考本人另外一篇文章  SPI/SCI/SpringSCI/WebApplicationInitializer/WebMvcConfigurerAdapter

相关文章:

  • 2022-01-30
  • 2022-01-23
  • 2022-02-13
  • 2021-06-17
  • 2022-01-15
  • 2021-08-29
  • 2021-11-08
  • 2021-12-25
猜你喜欢
  • 2021-11-14
  • 2022-03-07
  • 2021-10-01
  • 2022-12-23
  • 2021-05-16
  • 2022-02-26
  • 2021-10-22
相关资源
相似解决方案