DEV Community

Discussion on: Learn Spring Boot by Annotations

Collapse
 
baso53 profile image
Sebastijan Grabar

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.

Collapse
 
pmgysel profile image
Philipp Gysel

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.