From 553d82ce0e2c7da884a2e723a9159eaf35d63651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Mon, 6 Jun 2022 16:58:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=94=9F=E6=88=90=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E5=B0=86=E6=96=87=E6=A1=A3=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E4=BB=8Ev2=E5=8D=87=E7=BA=A7=E8=87=B3v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/dev/ruoyi-gateway.yml | 9 ++++++++- .../ruoyi-doc/src/main/resources/application.yml | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/config/dev/ruoyi-gateway.yml b/config/dev/ruoyi-gateway.yml index 4ee7cd6a..f6834384 100644 --- a/config/dev/ruoyi-gateway.yml +++ b/config/dev/ruoyi-gateway.yml @@ -27,7 +27,7 @@ security: - /auth/xcxLogin - /auth/register - /resource/sms/code - - /*/v2/api-docs + - /*/v3/api-docs - /csrf spring: @@ -71,6 +71,13 @@ spring: - Path=/resource/** filters: - StripPrefix=1 + # 演示服务 + - id: ruoyi-demo + uri: lb://ruoyi-demo + predicates: + - Path=/demo/** + filters: + - StripPrefix=1 # sentinel 配置 sentinel: diff --git a/ruoyi-visual/ruoyi-doc/src/main/resources/application.yml b/ruoyi-visual/ruoyi-doc/src/main/resources/application.yml index ace4de59..d3828532 100644 --- a/ruoyi-visual/ruoyi-doc/src/main/resources/application.yml +++ b/ruoyi-visual/ruoyi-doc/src/main/resources/application.yml @@ -43,13 +43,13 @@ knife4j: routes: - name: 系统服务 uri: ${knife4j.cloud.gatewayUri} - location: /system/v2/api-docs + location: /system/v3/api-docs - name: 代码生成 uri: ${knife4j.cloud.gatewayUri} - location: /code/v2/api-docs + location: /code/v3/api-docs - name: 资源服务 uri: ${knife4j.cloud.gatewayUri} - location: /resource/v2/api-docs + location: /resource/v3/api-docs - name: 认证服务 uri: ${knife4j.cloud.gatewayUri} - location: /auth/v2/api-docs + location: /auth/v3/api-docs