Closed WhiteStart closed 1 year ago
Can you explain why you think this is a bug in spring cloud gateway?
I raised issue for the first time,maybe it is a mistake,I this has something to do with springcloud's Zookeeper,but i can not work it out
I'm afraid I don't know much about zookeeper authentication and nothing about how the docker image sets that authentication up.
I thought the problem was that
@Bean public CuratorFramework curatorFramework() { CuratorFramework curator = new CuratorFramework(); curator.addAuthInfo("digest", "user:password".getBytes()); return curator; }
}
The creation of this bean must occur during the boostrapping phase. You can register configuration classes to run during this phase by annotating them with @BootstrapConfiguration and including them in a comma-separated list that you set as the value of the org.springframework.cloud.bootstrap.BootstrapConfiguration property in the resources/META-INF/spring.factories file, as shown in the following example:
resources/META-INF/spring.factories org.springframework.cloud.bootstrap.BootstrapConfiguration=\ my.project.CustomCuratorFrameworkConfig,\ my.project.DefaultCuratorFrameworkConfig
Describe the bug in docker,I used this
It seems to be
it did not work