From f0c07434360b6af0a1779fc708e0c618a66e5c77 Mon Sep 17 00:00:00 2001 From: zlt Date: Mon, 8 Jul 2019 10:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.properties | 12 ++++++------ .../src/main/resources/application-test.properties | 12 ++++++------ .../zuul-gateway/src/main/resources/application.yml | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/zlt-config/src/main/resources/application-prod.properties b/zlt-config/src/main/resources/application-prod.properties index 7239576e..b9f5b8b3 100644 --- a/zlt-config/src/main/resources/application-prod.properties +++ b/zlt-config/src/main/resources/application-prod.properties @@ -1,21 +1,21 @@ ########################## 统一变量配置 ########################## ##### 数据库配置 -zlt.datasource.ip=120.78.94.191 -zlt.datasource.username=zlt +zlt.datasource.ip=192.168.28.131 +zlt.datasource.username=root zlt.datasource.password=1q2w3e4r ##### redis配置 spring.redis.sentinel.master=mymaster -spring.redis.sentinel.nodes=120.78.94.191:26380,120.78.94.191:26381 +spring.redis.sentinel.nodes=192.168.28.130:26380,192.168.28.131:26381 spring.redis.password=1q2w3e4r ##### elasticsearch配置 zlt.elasticsearch.cluster-name=my-es -zlt.elasticsearch.cluster-nodes=47.107.114.25:9300 +zlt.elasticsearch.cluster-nodes=192.168.28.130:9300 ##### sentinel配置 -zlt.sentinel.dashboard=120.78.94.191:6999 +zlt.sentinel.dashboard=192.168.28.130:6999 ##### fastDFS配置 -zlt.fdfs.web-url=47.107.114.25 +zlt.fdfs.web-url=192.168.28.130 zlt.fdfs.trackerList=${zlt.fdfs.web-url}:22122 \ No newline at end of file diff --git a/zlt-config/src/main/resources/application-test.properties b/zlt-config/src/main/resources/application-test.properties index dbd0b0e1..07957294 100644 --- a/zlt-config/src/main/resources/application-test.properties +++ b/zlt-config/src/main/resources/application-test.properties @@ -1,21 +1,21 @@ ########################## 统一变量配置 ########################## ##### 数据库配置 -zlt.datasource.ip=120.78.94.191 -zlt.datasource.username=zlt +zlt.datasource.ip=192.168.28.131 +zlt.datasource.username=root zlt.datasource.password=1q2w3e4r ##### redis配置 -spring.redis.host=120.78.94.191 +spring.redis.host=192.168.28.130 spring.redis.port=6379 spring.redis.timeout=5000 ##### elasticsearch配置 zlt.elasticsearch.cluster-name=my-es -zlt.elasticsearch.cluster-nodes=47.107.114.25:9300 +zlt.elasticsearch.cluster-nodes=192.168.28.130:9300 ##### sentinel配置 -zlt.sentinel.dashboard=120.78.94.191:6999 +zlt.sentinel.dashboard=192.168.28.130:6999 ##### fastDFS配置 -zlt.fdfs.web-url=47.107.114.25 +zlt.fdfs.web-url=192.168.28.130 zlt.fdfs.trackerList=${zlt.fdfs.web-url}:22122 \ No newline at end of file diff --git a/zlt-gateway/zuul-gateway/src/main/resources/application.yml b/zlt-gateway/zuul-gateway/src/main/resources/application.yml index 33ffa667..5c8a3eaa 100644 --- a/zlt-gateway/zuul-gateway/src/main/resources/application.yml +++ b/zlt-gateway/zuul-gateway/src/main/resources/application.yml @@ -7,21 +7,21 @@ spring: ds1: nacos: server-addr: ${zlt.nacos.server-addr} - dataId: sentinel-flow + dataId: ${spring.application.name}-sentinel-flow groupId: DEFAULT_GROUP rule-type: flow # 熔断 ds2: nacos: server-addr: ${zlt.nacos.server-addr} - dataId: sentinel-degrade + dataId: ${spring.application.name}-sentinel-degrade groupId: DEFAULT_GROUP rule-type: degrade # 系统负载保护 ds4: nacos: server-addr: ${zlt.nacos.server-addr} - dataId: sentinel-system + dataId: ${spring.application.name}-sentinel-system groupId: DEFAULT_GROUP rule-type: system