Factory design pattern using Java annotation, IoC and Springboot

Factory pattern is a creational pattern where the logic of creating an object of the class resides in a factory class, in this article, we will see how to implement a factory pattern that always returns a new instance of…