使用@DubboReference注解引入rpc时候报错
异常输出
java.lang.IllegalStateException: No such any registry to reference com.xx.xxRpc on the consumer 192.168.10.239 use dubbo version 3.2.0-beta.3, please config <dubbo:registry address="..." /> to your spring config.
at org.apache.dubbo.config.ReferenceConfig.aggregateUrlFromRegistry(ReferenceConfig.java:592)
at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:436)
消费方(调用rpc的服务)中缺少dubbo注册地址的配置
dubbo:
application:
name: xxx
qos-enable: false
registry:
address: nacos://ip:8848?namespace=qiyu-live-test&&username=xxx&&password=xxx
consumer:
timeout: 10000
provider:
timeout: 30000