AbstractRefreshableApplicationContext.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:lams 作者:
@Override
public final ConfigurableListableBeanFactory getBeanFactory() {
    synchronized (this.beanFactoryMonitor) {
        if (this.beanFactory == null) {
            throw new IllegalStateException("BeanFactory not initialized or already closed - " +
                    "call 'refresh' before accessing beans via the ApplicationContext");
        }
        return this.beanFactory;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号