Joburgess 5 years ago
parent
commit
a69b2e532c
1 changed files with 7 additions and 2 deletions
  1. 7 2
      edu-zuul/src/main/resources/application.yml

+ 7 - 2
edu-zuul/src/main/resources/application.yml

@@ -53,7 +53,12 @@ zuul:
       serviceId: user-server
       #url: http://localhost:8001/
       ##加上下面参数,可将header信息传递至下游
-      #sensitiveHeaders:
+    api-student:
+      path: /api-student/**
+      serviceId: student-server
+    api-teacher:
+      path: /api-teacher/**
+      serviceId: teacher-server
     api-task:
       ### 以 /api-auth/访问转发到会员服务
       path: /api-task/**
@@ -107,4 +112,4 @@ management:
         include: "*"
   endpoint:
     health:
-      show-details: ALWAYS
+      show-details: ALWAYS