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


 org.apache.curator
 curator-framework

你可能感兴趣的:(zookeeper+dubbo启动项目报错:Context initialization failed)