Browse Source

消息服务路由配置

rengb 3 years ago
parent
commit
f2cfd55043
1 changed files with 6 additions and 0 deletions
  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/**
             - Path=/user-auth/**
           filters:
           filters:
             - StripPrefix=1
             - StripPrefix=1
+        - id: message-service
+          uri: lb://message-service
+          predicates:
+            - Path=/message-service/**
+          filters:
+            - StripPrefix=1
   redis:
   redis:
     database: 12
     database: 12
     host: 192.168.2.236 # Redis服务器地址
     host: 192.168.2.236 # Redis服务器地址