Sfoglia il codice sorgente

网关配置修改

xy 3 giorni fa
parent
commit
fc1af9cb0e
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      tz-gateway/src/main/resources/application.yaml

+ 6 - 0
tz-gateway/src/main/resources/application.yaml

@@ -42,6 +42,12 @@ spring:
             - Path=/app-api/system/**
           filters:
               - RewritePath=/app-api/system/v3/api-docs, /v3/api-docs
+        - id: system-appapi # 路由的编号
+          uri: grayLb://system-server
+          predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
+            - Path=/appapi/system/**
+          filters:
+            - RewritePath=/appapi/system/v3/api-docs, /v3/api-docs
         - id: system-platform-api # 路由的编号
           uri: grayLb://system-server
           predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组