You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/11 02:03:21 UTC

[GitHub] kibear edited a comment on issue #2038: @Reference用起来有点别扭

kibear edited a comment on issue #2038: @Reference用起来有点别扭
URL: https://github.com/apache/incubator-dubbo/issues/2038#issuecomment-404020928
 
 
   `@reference`代表引用spring中定义的bean,`@Autowired`代表注入spring中定义的bean,实际上他们功能是一样的,只不过ref是以前xml的有这个概念,Autowired是注解方式用的。既然现在都是用springboot全注解开发,当然用`@Autowired`来实现注入。没有远程不远程,ref没有远程意思,Autowired也没用本地的意思,如果有,那也是你们自己解释的。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org