update 更新 RedisUtils 返回客户端实例
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取实例id |
| | | * 获取客户端实例 |
| | | */ |
| | | public static String getClientId() { |
| | | return CLIENT.getId(); |
| | | public static RedissonClient getClient() { |
| | | return CLIENT; |
| | | } |
| | | |
| | | /** |
| | |
| | | stringBuffer.append(ServletUtils.getClientIP()).append("-"); |
| | | } else if (rateLimiter.limitType() == LimitType.CLUSTER){ |
| | | // 获取客户端实例id |
| | | stringBuffer.append(RedisUtils.getClientId()).append("-"); |
| | | stringBuffer.append(RedisUtils.getClient().getId()).append("-"); |
| | | } |
| | | MethodSignature signature = (MethodSignature) point.getSignature(); |
| | | Method method = signature.getMethod(); |