【发布时间】:2019-02-19 04:02:43
【问题描述】:
根据documentation,我可以通过调用addAuthInfo为Zookeeper ACL添加认证信息。但是在 Curator Framework bean 中,我找不到方法本身。它引发编译问题! .
我的 POM 有
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zookeeper-config</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.8</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
如何将 zookeeper 身份验证信息添加到 Spring Cloud Zookeeper Config。任何工作示例都会对我有所帮助。
【问题讨论】:
-
我认为文档需要更新。我看到了一个
setACL()方法,看起来很可能是替代品。 -
介意提交问题吗?
标签: spring-boot apache-zookeeper spring-cloud spring-cloud-config