Bean是什么
(重定向自什么是Bean)
跳到导航
跳到搜索
https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-definition
In Spring, the objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is instantiated, assembled, and managed by a Spring IoC container. Otherwise, a bean is simply one of many objects in your application. Beans, and the dependencies among them, are reflected in the configuration metadata used by a container.
在 Spring 中,构成应用程序主干并由 Spring IoC 容器管理的对象称为 bean。
bean 是由 Spring IoC 容器实例化、组装和管理的对象。
否则,bean 只是应用程序中众多对象中的一个。
Bean 以及它们之间的依赖关系反映在容器使用的配置元数据中。