Spring Bean 初始化进程

Spring Bean 初始化过程?????package com.open.beanimport org.springframework.context.support.ClassPa

Spring Bean 初始化过程
?Spring Bean 初始化进程?Spring Bean 初始化进程?Spring Bean 初始化进程??package com.open.bean;import org.springframework.context.support.ClassPathXmlApplicationContext;public class Test { public static void main(String[] args) { ClassPathXmlApplicationContext cx= new ClassPathXmlApplicationContext("bean.xml"); Life life=(Life)cx.getBean("life"); }}

?

?

输出结果

?

类的数量=3
msg=null
构造函数
setBeanName
setBeanFactory
postProcessBeforeInitialization
afterPropertiesSet
初始化
postProcessAfterInitialization