Skip to content

提前实例化所有单例bean #77

Description

@cr-skl

你好,我的问题是:
关于 application-context 分支中的 DefaultListableBeanFactory 类中的 preInstantiateSingletons() 方法, 为什么要把所有单例都进行实例化? 其余不是单例的类不需要提前实例化,只进行加载, 为什么要这样区别对待

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions