@Configuration @EnableConfigurationProperties(value=ZKLockProperties.class) public class ZKLockAutoConfiguration extends Object
| 构造器和说明 |
|---|
ZKLockAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.curator.framework.CuratorFramework |
curatorFramework(ZKLockProperties lockZKProperties) |
DistributedLockTemplate |
distributedLockTemplate(org.apache.curator.framework.CuratorFramework curatorFramework) |
@Bean @ConditionalOnMissingBean public org.apache.curator.framework.CuratorFramework curatorFramework(ZKLockProperties lockZKProperties)
@Bean @ConditionalOnMissingBean public DistributedLockTemplate distributedLockTemplate(org.apache.curator.framework.CuratorFramework curatorFramework)
Copyright © 2018. All rights reserved.