Difference between and

前端 未结 15 2425
再見小時候
再見小時候 2020-11-22 04:44

I\'m learning Spring 3 and I don\'t seem to grasp the functionality behind and .

15条回答
  •  盖世英雄少女心
    2020-11-22 05:45

    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.

提交回复
热议问题