【Java】Spring、SpringMVC父子容器

需知前提: Spring是一個容器(會將所有的bean放在裏面)(父容器) { Mapper代理對象、 Service對象、 SpringMVC容器(子容器)      {Controller對象} } 父子容器特點: 子容器可以訪問父容器對象(Controller可以注入Service),但是不能跨容器訪問屬性 父容器不能訪問子容器中對象(Service不能注入Controller)   要想跨
相關文章
相關標籤/搜索