From 10abf45f24963edf70ad43decf68c7ee18be8e87 Mon Sep 17 00:00:00 2001 From: limqhz <540344226@qq.com> Date: Fri, 15 Sep 2023 13:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=B5=8B=E8=AF=95=E5=AF=B9?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-config.yml | 7 ------- src/main/resources/application-prod.yml | 6 ++++++ src/main/resources/application-test.yml | 6 ++++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/main/resources/application-config.yml b/src/main/resources/application-config.yml index 0e03735..90a2531 100644 --- a/src/main/resources/application-config.yml +++ b/src/main/resources/application-config.yml @@ -27,13 +27,6 @@ spring: # # 默认 /h2-console # path: /h2 datasource: - driver-class-name: com.mysql.cj.jdbc.Driver -# url: jdbc:mysql://127.0.0.1:3306/smallapp_point?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false -# username: root -# password: hyty1234 - url: jdbc:mysql://127.0.0.1:3306/quinn?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false - username: root - password: 123456 type: com.zaxxer.hikari.HikariDataSource hikari: minimum-idle: 5 diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index f3c1784..1baa397 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,3 +1,9 @@ logging: level: com.itplh.hero: trace +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/smallapp_point?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false + username: root + password: hyty1234 diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index f3c1784..ea09394 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -1,3 +1,9 @@ logging: level: com.itplh.hero: trace +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:3306/quinn?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false + username: root + password: 123456