¶Ô±ÈÐÂÎļþ |
| | |
| | | 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"; |
| | | } |