Why Interfaces are recommend by Spring?

Spring framework has become the central part of every Java based micro-service application. Spring beans work with concrete classes and with interfaces as well, then why interfaces are recommended by Spring framework? Introduction Spring framework allows you to inject the beans by Interface as well as the Concrete classes. Consider following code, Now, in your client code you can use […]