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 2022/08/12 03:51:34 UTC

[GitHub] [dubbo] liufeiyu1002 commented on issue #10443: ReferenceAnnotationBeanPostProcessor registerReferenceBean 判断beanName重复问题 导致启动失败

liufeiyu1002 commented on issue #10443:
URL: https://github.com/apache/dubbo/issues/10443#issuecomment-1212703407

   `@DubboReference` 是按照属性名称注入 `spring` 容器中的,在`beanFactory`中是 属性名称 对应 `beanDefinition`
   `@Service` 是按照
   使用 `@Autowire ` 不会出现该错误 因为是 `byType` 注入按照实例类型查找的,
   `@Resource` 是 `byName`  按照属性名称注入,,  在查找的时候通过 属性名称 匹配
   我觉得这个不应该是 `dubbo` 的 bug,如果你的 DemoServiceImpl 在 consumer项目中 且 手动指定了@service("testService") 同样会报错,和 dubbo 无关


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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