关于java:zookeeperdubbo启动项目报错Context-initialization-failed

47次阅读

共计 510 个字符,预计需要花费 2 分钟才能阅读完成。

org.springframework.web.context.ContextLoader [2020-11-21 17:06:05] Context initialization failed
java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.connect(CuratorZookeeperTransporter.java:27)
at com.alibaba.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java)

解决:增加 curator-framework

<dependency>
 <groupId>org.apache.curator</groupId>
 <artifactId>curator-framework</artifactId>
</dependency>

正文完
 0