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.