其实,springboot下的service和component功能是一样的,都是用来将service层注入到spring中,让spring来管理
其实目前springboot中,controller,service,repository三个注解都是有效的,也是非常直观的,但是
这三个注解可以直接用component来等效的替换,
其实,不仅是springboot,component更多的是来自spring
有时候,当我们在组件dubbo服务的时候,我们需要将服务暴露在外的时候,
我们需要用到dubbo中的暴露服务的注解,例如有service,