Java theorytheory 0/50 · 0%
Spring · easy

18. Dependency Injection (DI)

Pattern for decoupling.

DI is a specific type of IoC where objects receive their dependencies from the container rather than creating them.

Check your understanding

  1. 1. Annotation for DI?

  2. 2. Best type of DI for mandatory dependencies?