BeanFactory:不会在spring容器启动的时候对bean进行实例化,只有在获取bean的时候回才会进行实例化bean
ApplicationContext:会随着spring的启动而实例化Bean,不过可以通过xml代码对bean进行延时实例化设置bean为:lazy-init=“true”
BeanFactory:不会在spring容器启动的时候对bean进行实例化,只有在获取bean的时候回才会进行实例化bean
ApplicationContext:会随着spring的启动而实例化Bean,不过可以通过xml代码对bean进行延时实例化设置bean为:lazy-init=“true”