rev:修改 suo
This commit is contained in:
@@ -38,8 +38,12 @@ public class RedissonUtils {
|
|||||||
throw new BadRequestException("当前业务正在执行:"+key+",稍后再试");
|
throw new BadRequestException("当前业务正在执行:"+key+",稍后再试");
|
||||||
}
|
}
|
||||||
}finally {
|
}finally {
|
||||||
if (isLock){
|
if (isLock && lock.isHeldByCurrentThread()){
|
||||||
lock.unlock();
|
try {
|
||||||
|
lock.unlock();
|
||||||
|
}catch (Exception ex){
|
||||||
|
System.out.println("redisson锁释放失败"+ex.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user