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 […]

What is dependency injection?

What is dependency injection? This is the first question which comes to the mind of many when they start learning Spring/Seam/Struts framework. Introduction Dependency injection is a programming paradigm where programmer do not write code to create the dependency instance, instead instance is created by an external framework. Connecting or “injecting” this dependency into appropriate places is Dependency Injection. There […]

Open Feign in Action

This is second part (Open Feign in Action) of the Open Feign tutorial series. You can find the first part of this tutorial here. Overview In this tutorial we will see Open Feign in Action. In last tutorial we saw how Feign makes it easy to write REST clients, in this tutorial I will show how to use Feign with […]