From f5dcdfeea4ba58858ab34f37afd846de985bdab2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 9 Apr 2023 17:20:55 +0800 Subject: [PATCH] =?UTF-8?q?Cloud=20=E5=A2=9E=E5=8A=A0=20Spring=20Boot=20Ad?= =?UTF-8?q?min=20=E7=9A=84=E8=BD=AC=E5=8F=91=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-gateway/src/main/resources/application.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yudao-gateway/src/main/resources/application.yaml b/yudao-gateway/src/main/resources/application.yaml index 211dfb596..2a800891d 100644 --- a/yudao-gateway/src/main/resources/application.yaml +++ b/yudao-gateway/src/main/resources/application.yaml @@ -31,6 +31,10 @@ spring: - Path=/app-api/infra/** filters: - RewritePath=/app-api/infra/v3/api-docs, /v3/api-docs + - id: infra-spring-boot-admin # 路由的编号(Spring Boot Admin) + uri: grayLb://infra-server + predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组 + - Path=/admin/** - id: bpm-admin-api # 路由的编号 uri: grayLb://bpm-server predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组