Explorar o código

消息服务路由配置

rengb %!s(int64=3) %!d(string=hai) anos
pai
achega
f2cfd55043
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      gateway-service/src/main/resources/bootstrap.yml

+ 6 - 0
gateway-service/src/main/resources/bootstrap.yml

@@ -33,6 +33,12 @@ spring:
             - Path=/user-auth/**
           filters:
             - StripPrefix=1
+        - id: message-service
+          uri: lb://message-service
+          predicates:
+            - Path=/message-service/**
+          filters:
+            - StripPrefix=1
   redis:
     database: 12
     host: 192.168.2.236 # Redis服务器地址