Closed runzexia closed 4 years ago
The latest version does not need to configure dubbo.registry.address
, But if you need to do this,
Please refer to dubbo.registry.address=spring-cloud://localhost
Thanks a lot for the quick reply.
I have similar errors when I set dubbo.registry.address=spring-cloud://localhost
@yuhuangbin
Thanks a lot for the quick reply. I have similar errors when I set
dubbo.registry.address=spring-cloud://localhost
@yuhuangbin
In my local, it works well
Thanks a lot for the quick reply. I have similar errors when I set
dubbo.registry.address=spring-cloud://localhost
@yuhuangbinIn my local, it works well
https://github.com/runzexia/spring-microservices-sample/tree/alibaba-dubbo I set up the project as a public project, this is a springcloud and dubbo demo. You can try run employee-service, it does not depend on any service. The configuration in nacos is saved in this file, you need to create it in nacos https://github.com/runzexia/spring-microservices-sample/blob/alibaba-dubbo/employee-service/nacos-config.yaml
看了你的项目,觉得你使用nacos作为配置中心写的有点问题,建议你参考下官方demo. 或者参考下spring-cloud-alibaba-samples
检查了一下没发现哪里有问题,我进debug模式看是要连
127.0.0.1:9090
这个地址,没有配置有关这个地址呀,有时间的时候可以帮忙看下嘛?
我把employee-service的nacos-config关掉了,现在试了下仍然会报错。 启动配置已经简化了很多。 https://github.com/runzexia/spring-microservices-sample/blob/alibaba-dubbo-warnshow/employee-service/src/main/resources/bootstrap.yml
ref https://github.com/alibaba/spring-cloud-alibaba/issues/915 cc @fangjian0423
发现问题是在连接vpn的本地机器,server启动在不同的hosts。 在非vpn环境的linux机器正常
发现问题是在连接vpn的本地机器,server启动在不同的hosts。 在非vpn环境的linux机器正常
我出现和你一样的问题,本地我关了vpn还是不行,同样发现是会连 127.0.0.1:9090 不知道这个是什么地址,你本地解决了嘛?
手动指定本机的host
nacos config: