From c870697c84b1309ae4b7a0b49281e7a42485625e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Mon, 17 Feb 2025 16:21:47 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E6=9C=AA=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/dromara/gateway/utils/WebFluxUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java b/ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java index 278050ad..36510db1 100644 --- a/ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java +++ b/ruoyi-gateway/src/main/java/org/dromara/gateway/utils/WebFluxUtils.java @@ -4,7 +4,7 @@ import cn.hutool.core.util.ObjectUtil; import org.dromara.common.core.domain.R; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.json.utils.JsonUtils; -import org.dromara.gateway.filter.GlobalCacheRequestFilter; +import org.dromara.gateway.filter.WebCacheRequestFilter; import org.springframework.cloud.gateway.support.ServerWebExchangeUtils; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferUtils; @@ -19,7 +19,6 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import java.net.URI; -import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.StandardCharsets; import java.util.LinkedHashSet; @@ -78,7 +77,7 @@ public class WebFluxUtils { * 从缓存中读取request内的body * * 注意要求经过 {@link ServerWebExchangeUtils#cacheRequestBody(ServerWebExchange, Function)} 此方法创建缓存 - * 框架内已经使用 {@link GlobalCacheRequestFilter} 全局创建了body缓存 + * 框架内已经使用 {@link WebCacheRequestFilter} 全局创建了body缓存 * * @return body */