【Java】Spring、SpringMVC父子容器

需知前提: Spring是一个容器(会将所有的bean放在里面)(父容器) { Mapper代理对象、 Service对象、 SpringMVC容器(子容器)      {Controller对象} } 父子容器特点: 子容器可以访问父容器对象(Controller可以注入Service),但是不能跨容器访问属性 父容器不能访问子容器中对象(Service不能注入Controller)   要想跨
相关文章
相关标签/搜索