集成lock4j框架,删除redisson锁,使用lock4j的锁。

This commit is contained in:
sxq
2021-06-22 16:06:02 +08:00
parent 56eba9cded
commit 645c926bbd
7 changed files with 75 additions and 201 deletions

View File

@ -1,27 +0,0 @@
package com.ruoyi.common.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 分布式锁(注解模式,不推荐使用,最好用锁的工具类)
*
* @author shenxinquan
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisLock {
/**
* 锁过期时间 默认30秒
*/
int expireTime() default 30;
/**
* 锁key值
*/
String key() default "redisLockKey";
}