Class ZooKeeperAutoConfiguration
java.lang.Object
tech.xmagic.zookeeper.autoconfigure.ZooKeeperAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(ZooKeeperProperties.class)
public class ZooKeeperAutoConfiguration
extends Object
ZooKeeper自动配置
- Since:
- 2021.6.0
- Version:
- 2022.10.1
- Author:
- meng2c
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.curator.framework.CuratorFrameworkzooKeeperService(org.apache.curator.framework.CuratorFramework curatorFramework)
-
Constructor Details
-
ZooKeeperAutoConfiguration
-
-
Method Details
-
curatorFramework
@Bean(initMethod="start", destroyMethod="close") public org.apache.curator.framework.CuratorFramework curatorFramework() -
zooKeeperService
@Bean public ZooKeeperService zooKeeperService(org.apache.curator.framework.CuratorFramework curatorFramework)
-