I\'m learning Spring 3 and I don\'t seem to grasp the functionality behind
and
.
I found this nice summary of which annotations are picked up by which declarations. By studying it you will find that
recognizes a superset of annotations recognized by
, namely:
@Component
, @Service
, @Repository
, @Controller
, @Endpoint
@Configuration
, @Bean
, @Lazy
, @Scope
, @Order
, @Primary
, @Profile
, @DependsOn
, @Import
, @ImportResource
As you can see
logically extends
with CLASSPATH component scanning and Java @Configuration features.