微服务配置的修改

This commit is contained in:
zer0Black
2022-04-09 23:27:20 +08:00
parent b11a0aafc0
commit f43631675f
21 changed files with 491 additions and 364 deletions
@@ -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任务开始,休眠三秒");