InitializingBean接口所在的包
import org.springframework.beans.factory.InitializingBean;
这个接口只有afterPropertiesSet()这个方法
package org.springframework.beans.factory;
public interface InitializingBean {
void afterPropertiesSet() throws Exception;
}
凡是继承该接口的类,在初始化bean的时候都会执行该方法。
所以通过实现该接口重写该方法来加载一些初始的东西。