Spring framework article 3 XML-based DI injection, springdi
I. Injection Classification
After the Bean instance creates a null object by calling the no-argument constructor, it needs to initialize the attributes of the Bean object. Initialization is automatically completed by the container, which is called injection. According to the injection method, there are two common types: Set Value injection, construct injection, and implement specific interface injection. Because the third method uses intrusive programming to pollute code, it is almost unnecessary.
1. Set Value Injection
2. Construct Injection
Ii. namespace Injection
Iii. Set property Injection
Iv. Automatic injection of domain attributes
5. SPEL Injection
6. Use internal Bean Injection
7. Use similar abstract Bean Injection
8. Use heterogeneous abstract Bean Injection
9. Specify Multiple Spring configuration files for the Application