ClassPathXmlApplicationContext
ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
追溯发现其实继承了ApplicationContext
继承关系
public interface ApplicationContext extends EnvironmentCapable, ListableBeanFactory, HierarchicalBeanFactory, MessageSource, ApplicationEventPublisher, ResourcePatternResolver {
发现继承了很多beanfactory,而这些beanfactory都继承于beanfactory
ApplicationContext是一个集大成者