Browse Source

新增河湖长相关配置

pull/36/head
chenjiandong 1 year ago
parent
commit
f18dc41914
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/GatewayFilterConfig.java

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

if(!StringUtils.isEmpty(clientId)){ if(!StringUtils.isEmpty(clientId)){
log.info("clientId is :{}", clientId); log.info("clientId is :{}", clientId);
String requestUrl = exchange.getRequest().getPath().value(); String requestUrl = exchange.getRequest().getPath().value();
log.info("requestUrl is :{}", clientId);
//去除gateway path 前缀 //去除gateway path 前缀
String apiUrl = requestUrl.replace(GatewayUrlPathUtil.getPathByClientId(clientId),""); String apiUrl = requestUrl.replace(GatewayUrlPathUtil.getPathByClientId(clientId),"");
log.info("apiUrl is :{}", apiUrl); log.info("apiUrl is :{}", apiUrl);

Loading…
Cancel
Save