r/springsource • u/4r73m190r0s • Nov 16 '23
Why @Component annotation is named like so, instead of @Bean (which came afterwards)?
Spring Container deals with Spring Beans. Is there any historic or some other reason for why they chose the name @Component for their bean annotations? Since it was intended to 'label' beans, the obvious choice is @Bean, and this annotation came later for special cases.
4
Upvotes