1- What is dependency injection and what are the advantages? Dependency injection is a design pattern that promotes loose coupling between the Spring components — that is, between the different collaborating POJOs. So by applying DI to your complex programming, your code will become simpl09er, easier to understand, and easier to test. According to the DI pattern, dependent objects are…