Categories
Spring Spring Core

Custom Qualifier Annotation

In this article I’m going to explain how to create customized Qualifiers in spring with example code. Instead of using @Qualifier annotation with name as a parameter everywhere, you can customize the Qualifier annotation for you based on the nature of your application. For Example : Mine is a Course management application for colleges. Every […]

Categories
Spring Spring Core

Spring Qualifier Annotation

Generally Autowired annotation will resolve dependencies based on the Type. If you are having only one Class implementing an interface, then Spring will make use of the Class implementation to resolve dependency. But, in most of the scenarios we have more than one Implementation classes for an Interface. If you use @Autowired in this case, […]