# redis-lock-spring-boot-starter
**Repository Path**: itCjb/redis-lock-spring-boot-starter
## Basic Information
- **Project Name**: redis-lock-spring-boot-starter
- **Description**: redis实现分布式锁
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 4
- **Forks**: 3
- **Created**: 2020-05-06
- **Last Updated**: 2021-12-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# redis-lock-spring-boot-starter
#### 介绍
redis实现分布式锁
#### 软件架构
首先引用本插件
```java
icu.funkye
redis-lock-spring-boot-starter
0.2
```
项目需引入如下依赖方可使用:
```java
org.springframework.boot
spring-boot-autoconfigure
2.1.8.RELEASE
provided
redis.clients
jedis
2.9.1
provided
org.springframework.boot
spring-boot-starter-aop
2.1.8.RELEASE
provided
org.springframework.boot
spring-boot-starter-data-redis
2.1.8.RELEASE
provided
```
#### 使用说明
1. @RedisLock(key = "默认类路径+方法名)",timeoutMills=超时时间默认60秒,可自定义,retry=默认50毫秒重试获取锁,lockTimeout=锁过期时间,可自定义,默认60)
2. 将以上注解加入需要使用分布式锁的地方
3. ``` yaml
redis.lock.server.host=127.0.0.1 #默认
redis.lock.server.port=6379 #默认
redis.lock.server.password= #默认""
redis.lock.server.database= #默认0
```