1.Spring容器的体现 顶层接口为BeanFactory,我们在开发当中更多的会使用ApplicationContext接口。 2.BeanFactory的使用 BeanFactory beanFactory = new XmlBeanFactory(new ClassPathReso
1.bean的配置 name属性 和id属性: 确定容器里的key的值 class属性: 确定 该bean 对象的类型 2.spring容器中 bean的实例化方式 1.默认:调用该类的无参构造方法 <bean id="user" class="com.rimi.bean.U