其實,springboot下的service和component功能是一樣的,都是用來將service層注入到spring中,讓spring來管理
其實目前springboot中,controller,service,repository三個注解都是有效的,也是非常直觀的,但是
這三個注解可以直接用component來等效的替換,
其實,不僅是springboot,component更多的是來自spring
有時候,當我們在組件dubbo服務的時候,我們需要將服務暴露在外的時候,
我們需要用到dubbo中的暴露服務的注解,例如有service,