写代码简单比较init-method,afterPropertiesSet和BeanPostProcessor

1、简单介绍java 一、init-method方法,初始化bean的时候执行,能够针对某个具体的bean进行配置。init-method须要在applicationContext.xml配置文档中bean的定义里头写明。例如:<bean id="TestBean" class="nju.software.xkxt.util.TestBean" init-method="init"></bean>
相关文章
相关标签/搜索