Skills101
← Tech dictionary

Java & Spring

What is Dependency injection?

Also called: DI

Dependency injection is a design technique where an object receives the objects it depends on from outside (usually through its constructor) instead of creating them itself. In Spring, the IoC container creates the beans and injects them.

Learn it properlySpring Boot tutorials — free, with diagrams, quizzes and a certificate

Related terms