What is the job of dependency injection?
This question already has an answer here:
In simple words, when you utilize an already defined function into your code instead of going through the complexity of writing the predefined function again, you need to add the library to your code where the function has been previously defined. This is known as dependency injection; where you are injecting another module into your code which would help you code easier.
链接地址: http://www.djcxy.com/p/82092.html上一篇: 依赖注入防止依赖容器的依赖
下一篇: 依赖注入的工作是什么?