Dependency injection (DI)

Spring three ways dependency injection (DI), namely:

1. Interface injection

2. Setter Method Injection

3. Constructor injection

Dependency injection is an idea, a design or pattern, in java is achieved by reflection, regardless of the specific frame.

Guess you like

Origin www.cnblogs.com/yz123/p/11949950.html