I think that @Component, @Service and @Repository belong to the Configuration category, they really don't have much to do with dependency injection, or maybe even add a new category - beans. Also, @Qualifier is a useful annotation that would go into the Dependency injection category.
Hi Sebastijan, thanks :) I see your point, the Spring-managed component annotations also register Beans in the background, same as @Bean. However, I also wanted to cover the concept of IoC in this article to make everything more accessible to beginners. So now I kinda reshufled the annotations/chapters to be closer to your suggestion but keep everything easy to understand.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post mate!
I think that
@Component
,@Service
and@Repository
belong to the Configuration category, they really don't have much to do with dependency injection, or maybe even add a new category - beans. Also,@Qualifier
is a useful annotation that would go into the Dependency injection category.Hi Sebastijan, thanks :) I see your point, the Spring-managed component annotations also register Beans in the background, same as @Bean. However, I also wanted to cover the concept of IoC in this article to make everything more accessible to beginners. So now I kinda reshufled the annotations/chapters to be closer to your suggestion but keep everything easy to understand.