apache dubbo / zookeeper / zookeeper not connected

 

dubbo 2.7.3 升级2.7.5 或更高版本时 连接不到zookeeper

方法一:

dubbo.config-center.timeout:10000
dubbo.registry.timeout: 100000

参考:
https://github.com/apache/dubbo-spring-boot-project/issues/668

 

方法二:

换掉dubbo的版本号就好了

如下:

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>2.7.3</version>
</dependency>
<!-- 使用zk 做注册中心,Dubbo 需要的依赖 -->
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-dependencies-zookeeper</artifactId>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>

 

 

.

此条目发表在java分类目录。将固定链接加入收藏夹。