Does a class which will act as a bean in a Spring application require both @Component
and @Named
at the same time?
What is the significance if both are used so?
I tried searching the net as well as saw the standard documentation of these annotations and found them a bit confusing.
Finally which name is taken by the application if the @Named
annotation does not specify any name for the bean?