关于bean的解释
2018-07-29 本文已影响1人
低调_0c1d
官网说明
原文地址
https://docs.spring.io/spring/docs/5.0.8.RELEASE/spring-framework-reference//core.html#beans
原文内容
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 otherwise 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中,Bean是组成应用的后端服务的对象的集合,是被Spring IoC管理的。一个Bean就是一个被Spring IoC容器实例化、集成和其他管理的对象。换句话说,bean仅仅是应用中无数个对象中的一个。Bean和他们之间的依赖关系反映在容器中的配置的元数据。