You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "spq666 (via GitHub)" <gi...@apache.org> on 2024/01/29 07:40:50 UTC
[I] Dubbo 3.2.10 使用@Autowired注入时报红 [dubbo]
spq666 opened a new issue, #13699:
URL: https://github.com/apache/dubbo/issues/13699
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
## Ask your question here





在CTestService中引用ATestService会报红,显示有多个实现类需要指定一个,但另一个实现类指向的是BTestService中的ATestService,在CTestService中使用@Resource或者@DubboReference引用ATestService则没有问题,麻烦问下这个是什么原因
--
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.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
Re: [I] Dubbo 3.2.10 使用@Autowired注入时报红 [dubbo]
Posted by "liufeiyu1002 (via GitHub)" <gi...@apache.org>.
liufeiyu1002 commented on issue #13699:
URL: https://github.com/apache/dubbo/issues/13699#issuecomment-1914153258
在 `ATestServiceImpl` 中 使用了 `@DubboReference `会在容器中生成一个 类型为 `ATestService` 的代理类 所以你用 `Autowired` 注解时会提示 (Autowired是byType的) @resource 是通过 名称注入的idea 不会提示告警
想验证 你可以通过 `applicationContext` 查看bean 容器中的类
--
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
Re: [I] Dubbo 3.2.10 使用@Autowired注入时报红 [dubbo]
Posted by "spq666 (via GitHub)" <gi...@apache.org>.
spq666 commented on issue #13699:
URL: https://github.com/apache/dubbo/issues/13699#issuecomment-1914180447
> 在 `ATestServiceImpl` 中 使用了 `@DubboReference `会在容器中生成一个 类型为 `ATestService` 的代理类 所以你用 `Autowired` 注解时会提示 (Autowired是byType的) @resource 是通过 名称注入的idea 不会提示告警 想验证 你可以通过 `applicationContext` 查看bean 容器中的类
好的,明白怎么回事了,非常感谢!
--
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
Re: [I] Dubbo 3.2.10 使用@Autowired注入时报红 [dubbo]
Posted by "spq666 (via GitHub)" <gi...@apache.org>.
spq666 commented on issue #13699:
URL: https://github.com/apache/dubbo/issues/13699#issuecomment-1914138893

--
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
Re: [I] Dubbo 3.2.10 使用@Autowired注入时报红 [dubbo]
Posted by "spq666 (via GitHub)" <gi...@apache.org>.
spq666 commented on issue #13699:
URL: https://github.com/apache/dubbo/issues/13699#issuecomment-1914131104

--
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