Bladeren bron

新增河湖长client

pull/31/head
chenjiandong 1 jaar geleden
bovenliggende
commit
ed800eddcc
5 gewijzigde bestanden met toevoegingen van 33 en 0 verwijderingen
  1. +5
    -0
      src/main/java/com/tuoheng/gateway/utils/GatewayUrlPathUtil.java
  2. +7
    -0
      src/main/resources/application-dev.yml
  3. +7
    -0
      src/main/resources/application-local.yml
  4. +7
    -0
      src/main/resources/application-prod.yml
  5. +7
    -0
      src/main/resources/application-test.yml

+ 5
- 0
src/main/java/com/tuoheng/gateway/utils/GatewayUrlPathUtil.java Bestand weergeven

@@ -23,6 +23,8 @@ public class GatewayUrlPathUtil {

private static final String HHZ_ADMIN = "tuoheng-hhz-admin";

private static final String HHZ_MP = "tuoheng-hhz-mp";

/**
* 获取 gateway 路由前缀,匹配url
* @param clientId
@@ -34,6 +36,9 @@ public class GatewayUrlPathUtil {
case HHZ_ADMIN:
apiPath = "/hhz/admin";
break;
case HHZ_MP:
apiPath = "/hhz/api";
break;
}
return apiPath;
}

+ 7
- 0
src/main/resources/application-dev.yml Bestand weergeven

@@ -158,6 +158,13 @@ spring:
- Path=/hhz/admin/**
filters:
- StripPrefix=2
# hhz 小程序服务
- id: tuoheng-hhz-api
uri: lb://tuoheng-hhz-api
predicates:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-local.yml Bestand weergeven

@@ -157,6 +157,13 @@ spring:
- Path=/hhz/admin/**
filters:
- StripPrefix=2
# hhz 小程序服务
- id: tuoheng-hhz-api
uri: lb://tuoheng-hhz-api
predicates:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-prod.yml Bestand weergeven

@@ -150,6 +150,13 @@ spring:
- Path=/hhz/admin/**
filters:
- StripPrefix=2
# hhz 小程序服务
- id: tuoheng-hhz-api
uri: lb://tuoheng-hhz-api
predicates:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-test.yml Bestand weergeven

@@ -151,6 +151,13 @@ spring:
- Path=/hhz/admin/**
filters:
- StripPrefix=2
# hhz 小程序服务
- id: tuoheng-hhz-api
uri: lb://tuoheng-hhz-api
predicates:
- Path=/hhz/api/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

Laden…
Annuleren
Opslaan