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 2021/07/30 09:40:04 UTC
[GitHub] [dubbo] mrrao opened a new issue #8377: @DubboReference in Configuration but IDEA warning: Could not autowire. No beans of 'xxx' type found
mrrao opened a new issue #8377:
URL: https://github.com/apache/dubbo/issues/8377
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 3.0.1
* Dubbo spring boot starer: 3.0.1
* Operating System version: Mac Os
* Java version: 1.8
* IntelliJ IDEA 2019.1.3
### Steps to reproduce this issue
1. Config dubbo reference in Configuration.java use @DubboReference and @Bean
2. Autowire reference in other Service
3. **IDEA warning: Could not autowire. No beans of 'xxx' type found**
4. Compile and run success
Code just like javadoc in org.apache.dubbo.config.spring.ReferenceBean.java:
```
@Configuration
public class ReferenceConfiguration {
@Bean
@DubboReference
public ReferenceBean<HelloService> helloService() {
return new ReferenceBean();
}
}
@Controller
public class FooController {
private final HelloService helloService;
@Autowired
public FooController(HelloService helloService) { <--- IDEA warning: Could not autowire. No beans of 'HelloService' type found
this.helloService = helloService;
}
}
```
### Expected Result
No IDEA warning
### Suggest
org.apache.dubbo.config.spring.ReferenceBean.java:
```
public class ReferenceBean<T> implements FactoryBean
==>
public class ReferenceBean<T> implements FactoryBean<T>
```
Maybe solve the problem
--
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
[GitHub] [dubbo] mrrao commented on issue #8377: @DubboReference in Configuration but IDEA warning: Could not autowire. No beans of 'xxx' type found
Posted by GitBox <gi...@apache.org>.
mrrao commented on issue #8377:
URL: https://github.com/apache/dubbo/issues/8377#issuecomment-890795601
Thanks!
--
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
[GitHub] [dubbo] kylixs closed issue #8377: @DubboReference in Configuration but IDEA warning: Could not autowire. No beans of 'xxx' type found
Posted by GitBox <gi...@apache.org>.
kylixs closed issue #8377:
URL: https://github.com/apache/dubbo/issues/8377
--
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
[GitHub] [dubbo] kevinw66 commented on issue #8377: @DubboReference in Configuration but IDEA warning: Could not autowire. No beans of 'xxx' type found
Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8377:
URL: https://github.com/apache/dubbo/issues/8377#issuecomment-890752677
Great suggestion!
--
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