There are 13 links in the Spring bean life cycle
Stage 1: Bean meta information configuration stage Stage 2: Bean meta information parsing stage Phase 3: register the Bean into the container Phase 4: BeanDefinition merge phase Phase 5: Bean Class loading phase Stage 6: Bean instantiation stage (2 small stages)
Pre instantiation stage ...
Added by brcolow on Wed, 02 Feb 2022 06:10:48 +0200
In writing RPC framework, dubbo's idea is used for reference, and dubbo's implementation is based on Spring Schema. So you need to know how to extend Spring Schema based on Spring.
You can better understand the schema syntax in Spring and write your own framework in the process of integrating Spring.
Added by saandel on Tue, 01 Feb 2022 18:50:48 +0200
Spring Learning Notes - Auto-assemble Bean
Auto-assembly is one way Spring meets bean dependencies Spring automatically finds and assembles properties for bean s in the context
There are three ways to assemble in Spring
Explicit Configuration in xmlExplicit Configuration in JavaImplicit automatic assembly of bean s
Added by cello on Mon, 24 Jan 2022 23:01:39 +0200
7, IOC of spring
<bean id="hello" class="com.wang.bean.Hello"
scope="singleton" init-method="init" autowire="byType"
<property name="userName" value="spring"></property>
Container usage 1: create the object of the container and t ...
Added by aebstract on Sun, 23 Jan 2022 12:55:34 +0200
What is circular dependency?
Very simply, object A depends on object B, and object B depends on object A. For example:
//A relies on B
public B b;
//B relies on A
public A a;
If Spring is not considered, circular dependency is not a problem, because it is normal for objects to depend on each other. For example:
Added by lmg on Wed, 19 Jan 2022 00:52:16 +0200
Scope of Bean
In Spring, the main bodies that make up the application and the objects managed by the Spring IOC container are called bean s. Simply put, a bean is an object initialized, assembled, and managed by the IOC container Among the several scopes, the request and session scopes are only used in web-based applications (don't care what ...
Added by jronyagz on Sat, 02 Oct 2021 00:39:52 +0300