H5W3
当前位置:H5W3 > java > 正文

【Java】zookeeper+dubbo启动项目报错:Context initialization failed

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>

本文地址:H5W3 » 【Java】zookeeper+dubbo启动项目报错:Context initialization failed

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址