spring和springmvc注入ioc的关系

spring 是父容器  springmvc是子容器。   子容器能够访问父容器,但父容器不能访问子容器spring SpringMVC内的Bean能够使用@Autowire注入Spring容器管理的Bean,反之不行express   在主容器中(applicationContext.xml),将Controller的注解排除掉  <context:component-scan base-pac
相关文章
相关标签/搜索