apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.5k stars 26.43k forks source link

springboot集成dubbo @Reference注入值为null #2953

Closed xiaobzhou closed 5 years ago

xiaobzhou commented 5 years ago

springboot集成dubbo(dubbo-spring-boot-starter:0.2.0)采用注解配置,在@com.alibaba.dubbo.config.annotation.Service的服务类中用@Reference注入另一个服务接口为null。请问这是什么原因?

tswstarplanet commented 5 years ago

好像之前有人提过一个类似的issue,好像是要同时配置为spring的bean吧

sylartp commented 5 years ago

@xiaobzhou 能补充一些详细的内容么,比如配置文件、相应service实现类

gudegg commented 5 years ago

@xiaobzhou 多提供点信息,我测了没问题

xiaobzhou commented 5 years ago

@sylartp @gudegg 我现在也可以了,配置没改,提问题的时候也重启了2次都为空后来也没问题了。