瀏覽代碼

新增河湖长相关配置

pull/36/head
chenjiandong 1 年之前
父節點
當前提交
f18dc41914
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java

+ 1
- 0
src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java 查看文件

@@ -62,6 +62,7 @@ public class GatewayFilterConfig implements GlobalFilter, Ordered {
if(!StringUtils.isEmpty(clientId)){
log.info("clientId is :{}", clientId);
String requestUrl = exchange.getRequest().getPath().value();
log.info("requestUrl is :{}", clientId);
//去除gateway path 前缀
String apiUrl = requestUrl.replace(GatewayUrlPathUtil.getPathByClientId(clientId),"");
log.info("apiUrl is :{}", apiUrl);

Loading…
取消
儲存