From b62726545e358e7c45571b51fe0fbe8f85dfe5ec Mon Sep 17 00:00:00 2001 From: Zhujx Date: Mon, 22 Sep 2025 14:07:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:prod=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.yml | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/script/src/main/resources/application-prod.yml b/script/src/main/resources/application-prod.yml index d18e305..685cc6f 100644 --- a/script/src/main/resources/application-prod.yml +++ b/script/src/main/resources/application-prod.yml @@ -1,9 +1,22 @@ spring: + cloud: + nacos: + discovery: + group: DEFAULT_GROUP + namespace: 6f603892-e9f7-4ca4-acbc-538fa09ebec0 + server-addr: general.xiangtech.xyz:8848 + username: nacos + password: nacos datasource: - url: jdbc:mysql://192.168.2.10:3306/xservice-script?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true - username: root - password: Admin@123 - driver-class-name: com.mysql.cj.jdbc.Driver + dynamic: + primary: master + datasource: + master: + url: jdbc:mysql://192.168.2.10:3306/xservice-script?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true + username: root + password: Admin@123 + driver-class-name: com.mysql.cj.jdbc.Driver + sshConnect: false redis: host: 192.168.2.10 port: 6379