Spring中BeanFactory和ApplicationContext的区别

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11483974.html

 

参考Spring官方解释

 

BeanFactory.java

ApplicationContext.java

 

Summary 

ApplicationContext是BeanFactory的子类, 通俗的说BeanFactory是一个Basic Container,ApplicationContext是一个Advanced Container以及对Transaction和AOP的支持等

 

Reference

https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#context-introduction-ctx-vs-beanfactory

 

posted @ 2019-09-07 23:50  李白与酒  阅读(1756)  评论(0编辑  收藏  举报