RpcException: No provider available from registry
程序员文章站
2022-07-15 14:28:44
...
时间:2021.5.28
错误:RpcException: No provider available from registry
在写springboot集成ssm、dubbo、redis的时候的小demo时候出现了 No provider available from registry错误
其排除方案有以下几种:
1.application启动类上面是否缺少注解@DubboComponentScan;
2.调用方的注解是否是dubbo的@Reference;
3.service层的注解是否是dubbo的@Service(不是spingboot的);
4.调用方和service层的注解版本是否一致;
我出错是因为没有在对应的实现类加类扫描器Component注解,导致这个类没有被扫描到,所以也就没有成功注册,导致消费者找不到对应的接口及方法
出这种错建议将dubbo的相关类及接口从头到尾看一遍,相信你能找到错误的地方!!
总之,在编写程序的时候,一定要仔细!!!!
上一篇: No provider available from registry
下一篇: com.alibaba.dubbo.rpc.RpcException: No provider available from
推荐阅读
-
异常处理com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for
-
RpcException: No provider available from registry
-
No provider available from registry
-
RpcException: No provider available from registry
-
com.alibaba.dubbo.rpc.RpcException: No provider available from
-
com.alibaba.dubbo.rpc.RpcException: No provider available from registry stable.zk.scsite.net:21异常解决
-
No provider available from registry 192.168.126.129:2181 for service com.jt.service.DubboUserServic
-
nacos dubbo 使用时遇到报错 No provider available from registry localhost:9090