異常:org.apache.zookeeper.ZooKeeper.<init>(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)Vjava
緣由:有不一樣版本的zookeeper的jar包引入所致apache
解決:在pom.xml中添加 xml
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>blog
或者it
在Dependency Hierarchy中,右擊要去掉的版本——Exclude Maven Artifact...io