服务器报500 [Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service com.itheima.service.CheckgroupService on consumer 192.168.91.1 use dubbo version 2.6.0, may be providers disabled or not registered ?] with root cause
**
com.alibaba.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service com.itheima.service.CheckgroupService on consumer 192.168.91.1 use dubbo version 2.6.0, may be providers disabled or not registered ?at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:572)at com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:73)
解决办法
1.对应的dubbo服务未启动,或者是dubbo没有连上Zookeeper注册中心。
2.controller层 ,引入远程service的时候,impl没有添加注解 dubbo的@Service 注解(我是这个原因,加上@Service(interfaceClass = CheckgroupService.class)之后,就可以了)