0 votes
in Spring by
How do we implement DI in Spring Framework?

1 Answer

0 votes
by

We can use Spring XML based as well as Annotation-based configuration to implement DI in spring applications. For better understanding, please read Spring Dependency Injection example where you can learn both the ways with JUnit test case. The post also contains a sample project zip file, that you can download and play around to learn more.

...