Spring中BeanFactory和ApplicationContext的区别

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

 

参考Spring官方解释

Spring中BeanFactory和ApplicationContext的区别

 

BeanFactory.java

Spring中BeanFactory和ApplicationContext的区别

ApplicationContext.java

Spring中BeanFactory和ApplicationContext的区别

 

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

 

Spring中BeanFactory和ApplicationContext的区别

上一篇:MappReduce例子和总结02


下一篇:C语言 知识点