From df51c8f2c7ccd1b760fd3f1b908edde444efbd22 Mon Sep 17 00:00:00 2001 From: zlt Date: Thu, 29 Aug 2019 11:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Asentinel=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=A7=84=E5=88=99,=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=86=8D=E8=87=AA=E5=B7=B1=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/zlt-gateway/zuul-gateway/src/main/resources/application.yml b/zlt-gateway/zuul-gateway/src/main/resources/application.yml index b326ff04..6131cdb0 100644 --- a/zlt-gateway/zuul-gateway/src/main/resources/application.yml +++ b/zlt-gateway/zuul-gateway/src/main/resources/application.yml @@ -1,30 +1,30 @@ -spring: +#spring: # sentinel动态配置规则 - cloud: - sentinel: - zuul: - enabled: true - order: - pre: 2000 - post: 500 - error: -100 - filter: - enabled: false - datasource: +# cloud: +# sentinel: +# zuul: +# enabled: true +# order: +# pre: 2000 +# post: 500 +# error: -100 +# filter: +# enabled: false +# datasource: # 限流 - ds1: - nacos: - server-addr: ${zlt.nacos.server-addr} - dataId: ${spring.application.name}-sentinel-gw-flow - groupId: DEFAULT_GROUP - rule-type: gw-flow +# ds1: +# nacos: +# server-addr: ${zlt.nacos.server-addr} +# dataId: ${spring.application.name}-sentinel-gw-flow +# groupId: DEFAULT_GROUP +# rule-type: gw-flow # api分组 - ds2: - nacos: - server-addr: ${zlt.nacos.server-addr} - dataId: ${spring.application.name}-sentinel-gw-api-group - groupId: DEFAULT_GROUP - rule-type: gw-api-group +# ds2: +# nacos: +# server-addr: ${zlt.nacos.server-addr} +# dataId: ${spring.application.name}-sentinel-gw-api-group +# groupId: DEFAULT_GROUP +# rule-type: gw-api-group zlt: oauth2: