没有可用的提供程序 com.gsh56.demo.service.api.HelloService

作者: herist创建于 2019年9月24日更新于 2019年9月24日

服务端注册看起来正常 image 消费端初始化出错 org.springframework.beans.factory.BeanCreationException: 创建名为 'demoAppApplication.TestController' 的 Bean 失败: 无法注入 @org.apache.dubbo.config.annotation.Reference 依赖项; 导致的内部异常为 java.lang.IllegalStateException: 无法检查服务 com.gsh56.demo.service.api.HelloService 的状态。从 url spring-cloud://localhost:9090/org.apache.dubbo.registry.RegistryService?application=demo-app&default.lazy=false&default.sticky=false&dubbo=2.0.2&interface=com.gsh56.demo.service.api.HelloService&lazy=false&methods=hello&pid=12640&register.ip=192.168.90.35&release=2.7.1&side=consumer&sticky=false&timestamp=1569343527514 向消费者 192.168.90.35 使用 dubbo 2.7.1 版本的服务 com.gsh56.demo.service.api.HelloService 失败

内容来源: dyc87112/SpringCloud-Learning