Skip to content

CuratorFrameworkCustomizer can't be injected when "spring-cloud-starter-zookeeper-config" on the classpath #249

Description

@TJYS

SpringBoot: 2.3.0.Release
SpringCloud: Hoxton.SR5
I want to config CuratorFramework by declaring CuratorFrameworkCustomizer as a bean. if only "spring-cloud-starter-zookeeper-discovery" on the classpath, CuratorFrameworkCustomizer can be injected into "ZooKeeperAutoConfiguration". But if I use "spring-cloud-starter-zookeeper-config" at the same time OR only use "spring-cloud-starter-zookeeper-config", it doesn't works. CuratorFrameworkCustomizer can't be injected.
I watched that "ZooKeeperAutoConfiguration" was loaded in different order.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions