Przeglądaj źródła

更新 gateway 中的路由

reghao 1 rok temu
rodzic
commit
9d88470c9b
1 zmienionych plików z 17 dodań i 24 usunięć
  1. 17 24
      gateway/src/main/resources/application.yml

+ 17 - 24
gateway/src/main/resources/application.yml

@@ -61,37 +61,37 @@ spring:
             - Path=/api/comment/**
           filters:
             - StripPrefix=0
-        - id: data-router
-          uri: lb://data-service
-#          uri: http://192.168.0.39:6005
+        - id: mall-router
+          uri: lb://content-service
           predicates:
-            - Path=/api/data/**
+            - Path=/api/mall/**
           filters:
             - StripPrefix=0
-        ###############################################################################
-        - id: disk-router
-          uri: lb://file-service
+        - id: geo-router
+          uri: lb://content-service
           predicates:
-            - Path=/api/disk/**
+            - Path=/api/map/**
           filters:
             - StripPrefix=0
-        - id: file-router
-          uri: lb://file-service
+        - id: im-router
+          uri: lb://content-service
           predicates:
-            - Path=/api/file/**
+            - Path=/api/im/**
           filters:
             - StripPrefix=0
-        - id: oss-router
-          uri: lb://file-service
+        ###############################################################################
+        - id: data-router
+          uri: lb://data-service
+          #uri: http://192.168.0.39:6005
           predicates:
-            - Path=/oss/**
+            - Path=/api/data/**
           filters:
             - StripPrefix=0
         ###############################################################################
-        - id: mall-router
-          uri: lb://mall-service
+        - id: file-router
+          uri: lb://file-service
           predicates:
-            - Path=/api/mall/**
+            - Path=/api/file/**
           filters:
             - StripPrefix=0
         ###############################################################################
@@ -103,13 +103,6 @@ spring:
           uri: lb://message-service
           predicates:
             - Path=/api/message/**
-        ###############################################################################
-        - id: im-router
-          uri: lb://im-service
-          predicates:
-            - Path=/api/im/**
-          filters:
-            - StripPrefix=0
 #    gateway:
 #      globalcors:
 #        cors-configurations: