spring默认使用的是BeanFactory还是ApplicationContext?还是两者配合使用的?
ApplicationContext其实是BeanFactory的实现,一般都是直接用ApplicationContext来操作bean对象,也就是我们常说的上下文容器
XmlBeanFactory继承自DefaultListableBeanFactory,DefaultListableBeanFactory实现了ConfigurableListableBeanFactory接口,ConfigurableListableBeanFactory接口继承了AutowireCapableBeanFactory接口,AutowireCapableBeanFactory接口继承了BeanFactory,而DefaultListableBeanFactory是整个bean加载的核心部分,是Spring注册及加载bean的默认实现。