Types of DI patterns

In Spring, the following types of DI are performed:

  • Constructor-based DI
  • Setter-based DI
  • Field-based DI

We will learn more about these in the next sections.