Spring Dependency Injection – 春天的依赖性注入

最后修改: 2019年 1月 29日

Dependency Injection is a fundamental aspect of the Spring framework, through which the Spring container “injects” objects into other objects or “dependencies”.

依赖注入是Spring框架的一个基本方面,通过它,Spring容器将对象 “注入 “到其他对象或 “依赖 “中。

Simply put, this allows for loose coupling of components and moves the responsibility of managing components onto the container.


Let’s explore DI with Spring further here.