Optimize configuration code, ZookeeperConfig should not be configured here
@@ -36,16 +36,6 @@ import org.springframework.context.annotation.Configuration;
@EnableConfigurationProperties(ZookeeperConfig.class)
public class ZookeeperConfiguration {
- /**
- * Zookeeper config zookeeper config.
- *
- * @return the zookeeper config
- */
- @Bean
- public ZookeeperConfig zookeeperConfig() {
- return new ZookeeperConfig();
- }
-
/**
* Zk serializer zk serializer.
*
