修改日志打印

This commit is contained in:
2025-07-09 02:52:57 +08:00
parent 6132086432
commit 2fa4709f6d

View File

@ -32,7 +32,7 @@ public class LoggingGlobalFilter implements GlobalFilter, Ordered {
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
CustomExchange decoratedExchange = new CustomExchange(exchange);
return chain.filter(decoratedExchange)
return chain.filter(decoratedExchange)
.then(Mono.fromRunnable(() -> {
log.info("🌐 请求路径: {}", exchange.getRequest().getPath());