dyc87112/SpringCloud-Learning

No provider available for the service com.gsh56.demo.service.api.HelloService

herist opened this issue · 0 comments

服务端注册看上去正常
image

消费端初始化出错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoAppApplication.TestController': Injection of @org.apache.dubbo.config.annotation.Reference dependencies is failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.gsh56.demo.service.api.HelloService. No provider available for the service com.gsh56.demo.service.api.HelloService from the 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 to the consumer 192.168.90.35 use dubbo version 2.7.1