控制反转,把对象创建和对象之间的调用过程,交给Spring进行管理
使用IOC目的:为了耦合度降低
做入门案例就是IOC实现
XML解析,工厂模式,反射机制、
工厂模式是什么?
IOC过程:
IOC思想基于IOC容器完成,IOC容器底层就是对象工厂
Spring提供IOC容器实现两种方式:(两种接口)
BeanFactory接口=ApplicationContext接口,但是一般使用ApplicationContext,因为他更加方便,简洁