java.lang.IllegalStateException: Failed to check the status of the service com.pinyougou.sellergoods.service.BrandService. No provider available for the service com.pinyougou.sellergoods.service.BrandService from the url zookeeper://192.168.25.129:2181
注册中心错误 在注册中心找不到对应的服务
1.在controller层 注入service层 注解@Reference 是否导包导错
正确导包路径:com.alibaba.dubbo.config.annotation.Reference;
2.service层要在其接口实现类上配置@Service(interfaceClass = XxxxXxxx.class)
3.清除idea缓存重启 重启apachezookeeper 重新执行clean和installmaven控制台命令
重启apachezookeeper
重新执行clean和installmaven控制台命令
补充:出现这种问题,可能还是后端代码写错的问题,因为当后端代码出现错误的时候,dubbo会覆盖错误提示.
如果上述方法没解决,可以查看下自己的xml配置文件有没有问题.