1、Spring框架支持xml和properties两种格式的配置文件。常用xml格式的。
2、bean的实例化:常用无参的构造方法实例化。即默认方法。
3、bean的作用域:singleton和prototype。
使用id和name请求Bean时 即 new ClassPathXmlApplicationContext("bean.id");
singleton : 仅实例化一个
prototype : 请求一次,创建一次
写法:<bean id="xx" class="xx" scope=“singleton/prototype” />
4、自定义初始化方法和销毁方法
<bean id="xxx" class="xxx"init-method=" " destroy-method=" " />