ソースを参照

修复配置文件

zhuoning 4 年 前
コミット
6c9979c6b3

+ 6 - 8
huimv-ql-farm/huimv-ql-gateway/src/main/resources/application.yml

@@ -2,34 +2,32 @@ server:
   port: 8010
 
 spring:
-  # 配置服务名
   application:
     name: gateway
-  # 配置Cloud
   cloud:
-    gateway:          # 配置网关
-      enabled: true   #配置网关是否可以启用
+    gateway:
+      enabled: true
       routes:
         - id: environment_route
-          uri: http://192.168.1.53:8090               #匹配后提供的路由地址
+          uri: http://192.168.1.53:8090
           predicates:
             - Path=/environment/**
           filters:
             - StripPrefix=1
         - id: video_route
-          uri: http://192.168.1.53:8100               #匹配后提供的路由地址
+          uri: http://192.168.1.53:8100
           predicates:
             - Path=/video/**
           filters:
             - StripPrefix=1
         - id: production_route
-          uri: http://192.168.1.53:8085               #匹配后提供的路由地址
+          uri: http://192.168.1.53:8085
           predicates:
             - Path=/production/**
           filters:
             - StripPrefix=1
         - id: security_route
-          uri: http://192.168.1.53:8095           #匹配后提供的路由地址
+          uri: http://192.168.1.53:8095
           predicates:
             - Path=/security/**
           filters: