Spring Core- Dependency Injection using setter method
In Java programming language, it is common that one class contains reference of other class. This is said to be “HAS A relationship” in OOP.
Spring framework provides facility to inject one bean to another bean to achieve “HAS A” relationship.
The below example demonstrate dependency injection using setter method. …