Difference between and

前端 未结 15 2774
再見小時候
再見小時候 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:32

    The difference between the two is really simple!.

     
    

    Enables you to use annotations that are restricted to wiring up properties and constructors only of beans!.

    Where as

     
    

    Enables everything that can do, with addition of using stereotypes eg.. @Component, @Service , @Repository. So you can wire entire beans and not just restricted to constructors or properties!.

提交回复
热议问题