Sfoglia il codice sorgente

新增河湖长相关配置

pull/36/head
chenjiandong 1 anno fa
parent
commit
f18dc41914
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java

+ 1
- 0
src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java Vedi File

@@ -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…
Annulla
Salva