修复bug
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.jero.modules.cloud.lock;
|
||||
|
||||
import com.jero.boot.starter.lock.annotation.JLock;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.boot.starter.lock.annotation.DistributedLock;
|
||||
import com.jero.boot.starter.lock.client.RedissonLockClient;
|
||||
import com.jero.boot.starter.rabbitmq.client.RabbitMqClient;
|
||||
import com.jero.common.base.BaseMap;
|
||||
@@ -28,7 +28,7 @@ public class DemoLockTest {
|
||||
* 测试分布式锁【注解方式】
|
||||
*/
|
||||
@Scheduled(cron = "0/5 * * * * ?")
|
||||
@DistributedLock(lockKey = CloudConstant.REDISSON_DEMO_LOCK_KEY1)
|
||||
@JLock(lockKey = CloudConstant.REDISSON_DEMO_LOCK_KEY1)
|
||||
public void execute() throws InterruptedException {
|
||||
log.info("执行execute任务开始,休眠三秒");
|
||||
Thread.sleep(3000);
|
||||
|
||||
Reference in New Issue
Block a user