“Bean是什么”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
(未显示同一用户的1个中间版本) | |||
第5行: | 第5行: | ||
bean 是由 Spring IoC 容器实例化、组装和管理的对象。 | bean 是由 Spring IoC 容器实例化、组装和管理的对象。 | ||
− | 否则,bean 只是应用程序中众多对象中的一个。 Bean 以及它们之间的依赖关系反映在容器使用的配置元数据中。 | + | 否则,bean 只是应用程序中众多对象中的一个。 |
+ | |||
+ | Bean 以及它们之间的依赖关系反映在容器使用的配置元数据中。 |
2023年1月31日 (二) 01:49的最新版本
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 以及它们之间的依赖关系反映在容器使用的配置元数据中。