org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.51.100:20880)问题解决

问题:项目启动的时候突然出现:org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.51.100:20880)这个问题,我发现这个ip根本不是我电脑的ip,我通过终端查询ip为192.168.51.162这个ip给我查询的不符合

解决办法1:org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.51.100:20880)问题解决_第1张图片org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.51.100:20880)问题解决_第2张图片在启动配置里面输入启动参数将ip改为你实际的ip就可以解决

解决办法2:
org.apache.dubbo.remoting.RemotingException: client(url: dubbo://192.168.51.100:20880)问题解决_第3张图片在yml文件或者properties写你的ip但是不要提交,服务器上没有出现这个问题

你也可以通过xml配置

最后:消费者服务,提供者服务都需要进行配置,不能只配置消费者项目

你可能感兴趣的:(SpringBoot,dubbo,dubbo,zookeeper,java)