From 657ec8e0dcc4c7d79e9e0f3b575b0d08bbc7778a Mon Sep 17 00:00:00 2001 From: zhangbin1010 <391289241@qq.com> Date: Tue, 8 Oct 2019 10:04:33 +0800 Subject: [PATCH] =?UTF-8?q?[Upgrade]=20=E4=BC=98=E5=8C=96=20AcpAdminDistri?= =?UTF-8?q?butedLockAutoConfiguration=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/common/AcpAdminDistributedLockAutoConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/acp-admin-cloud-dependencies/src/main/kotlin/pers/acp/admin/common/AcpAdminDistributedLockAutoConfiguration.kt b/cloud/acp-admin-cloud-dependencies/src/main/kotlin/pers/acp/admin/common/AcpAdminDistributedLockAutoConfiguration.kt index 7becc511..5d9cffd7 100644 --- a/cloud/acp-admin-cloud-dependencies/src/main/kotlin/pers/acp/admin/common/AcpAdminDistributedLockAutoConfiguration.kt +++ b/cloud/acp-admin-cloud-dependencies/src/main/kotlin/pers/acp/admin/common/AcpAdminDistributedLockAutoConfiguration.kt @@ -8,7 +8,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Import -import org.springframework.data.redis.connection.RedisConnection +import org.springframework.data.redis.core.RedisOperations import org.springframework.data.redis.core.RedisTemplate import pers.acp.admin.common.lock.RedisDistributedLock import pers.acp.admin.common.lock.ZkDistributedLock @@ -27,7 +27,7 @@ import pers.acp.spring.cloud.lock.DistributedLock class AcpAdminDistributedLockAutoConfiguration { @Bean - @ConditionalOnClass(RedisConnection::class) + @ConditionalOnClass(RedisOperations::class) @ConditionalOnMissingBean(CuratorFramework::class) fun redisDistributedLock(redisTemplate: RedisTemplate): DistributedLock = RedisDistributedLock(redisTemplate)