From f20efa55f8d99b9987fdd99250df4024ee1bbd67 Mon Sep 17 00:00:00 2001 From: qujay <371226673@qq.com> Date: Fri, 14 Oct 2022 23:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=8D=95CRUD?= =?UTF-8?q?=EF=BC=8Ctoken=E5=88=A0=E9=99=A4=EF=BC=8C=E6=85=A2sql=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=EF=BC=8C=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=EF=BC=8C=E6=89=80=E5=B1=9E=E5=BA=94=E7=94=A8=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zlt-config/src/main/resources/application-dev.properties | 6 +++--- zlt-config/src/main/resources/application-prod.properties | 4 ++-- zlt-config/src/main/resources/bootstrap.properties | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zlt-config/src/main/resources/application-dev.properties b/zlt-config/src/main/resources/application-dev.properties index 43d5ef6f..4c374212 100644 --- a/zlt-config/src/main/resources/application-dev.properties +++ b/zlt-config/src/main/resources/application-dev.properties @@ -1,11 +1,11 @@ ########################## 统一变量配置 ########################## ##### 数据库配置 -zlt.datasource.ip=192.168.28.130 +zlt.datasource.ip=127.0.0.1 zlt.datasource.username=root -zlt.datasource.password=1q2w3e4r +zlt.datasource.password=123456 ##### redis配置 -spring.redis.host=192.168.28.130 +spring.redis.host=127.0.0.1 spring.redis.port=6379 spring.redis.timeout=5000 diff --git a/zlt-config/src/main/resources/application-prod.properties b/zlt-config/src/main/resources/application-prod.properties index 5fe2ca3d..bce88d75 100644 --- a/zlt-config/src/main/resources/application-prod.properties +++ b/zlt-config/src/main/resources/application-prod.properties @@ -6,8 +6,8 @@ zlt.datasource.password=1q2w3e4r ##### redis配置 spring.redis.sentinel.master=mymaster -spring.redis.sentinel.nodes=192.168.28.130:26380,192.168.28.131:26381 -spring.redis.password=1q2w3e4r +spring.redis.sentinel.nodes=172.17.0.1 +spring.redis.password= ##### elasticsearch配置 zlt.elasticsearch.uris=192.168.28.130:9200 diff --git a/zlt-config/src/main/resources/bootstrap.properties b/zlt-config/src/main/resources/bootstrap.properties index 639ab88d..6949123d 100644 --- a/zlt-config/src/main/resources/bootstrap.properties +++ b/zlt-config/src/main/resources/bootstrap.properties @@ -3,9 +3,9 @@ spring.profiles.active=dev ##### nacos(注册中心和配置中心)地址 -spring.cloud.nacos.server-addr=192.168.28.130:8848 -#spring.cloud.nacos.username=nacos -#spring.cloud.nacos.password=nacos +spring.cloud.nacos.server-addr=127.0.0.1:8848 +spring.cloud.nacos.username=nacos +spring.cloud.nacos.password=nacos spring.cloud.nacos.config.file-extension=yml spring.cloud.nacos.config.shared-configs[0].data-id=common.yml spring.cloud.nacos.config.shared-configs[0].refresh=true