微服务配置的修改
This commit is contained in:
+2
-1
@@ -26,8 +26,9 @@ public class DemoLockTest {
|
||||
|
||||
/**
|
||||
* 测试分布式锁【注解方式】
|
||||
* 注释掉测试环境
|
||||
*/
|
||||
@Scheduled(cron = "0/5 * * * * ?")
|
||||
// @Scheduled(cron = "0/5 * * * * ?")
|
||||
@JLock(lockKey = CloudConstant.REDISSON_DEMO_LOCK_KEY1)
|
||||
public void execute() throws InterruptedException {
|
||||
log.info("执行execute任务开始,休眠三秒");
|
||||
|
||||
Reference in New Issue
Block a user