From d66ad471bf425f706320232e7968b7a6a9ec46cf Mon Sep 17 00:00:00 2001 From: tianyuan <2861334240@qq.com> Date: Sun, 7 Dec 2025 12:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 7a6b00f..e9e6d7b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -11,12 +11,13 @@ jwt: spring: main: allow-bean-definition-overriding: true # 缩进在 spring 下,作为子配置 - # 数据库配置 - datasource: - url: jdbc:mysql://localhost:3306/campus_water_management?useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8&allowPublicKeyRetrieval=true - username: root - password: wl1113 - driver-class-name: com.mysql.cj.jdbc.Driver + # 数据库配置 + datasource: + url: jdbc:mysql://120.46.151.248:3306/campus_water_management?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + username: member + password: Hdp11008@ + driver-class-name: com.mysql.cj.jdbc.Driver + # JPA 配置 jpa: hibernate: -- 2.34.1