mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-15 16:28:32 +08:00
5.X 分支限流切面位于 ruoyi-common-ratelimiter 模块,getCombineKey 与 6.X 一样 直接调用 ServletUtils.getRequest().getRequestURI(),非 HTTP 线程(如 gRPC 的 grpc-default-executor)无请求上下文导致 NPE,被切面包装为“服务器限流异常”, 使 @RateLimiter 注解在 gRPC 场景每次调用都失败。修复:request 为 null 时 跳过 URI/IP 段,仅以注解 key 限流;HTTP 线程行为不变。 |
||
|---|---|---|
| .. | ||
| src/main | ||
| pom.xml | ||