From dbee96a9855833d5c7a04526265e085fe15826ec Mon Sep 17 00:00:00 2001 From: MaxKey Date: Sat, 28 Sep 2024 10:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E5=8F=82=E6=95=B0=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-maxkey.properties | 6 +++--- .../src/main/resources/application-maxkey-mgt.properties | 6 +++--- .../main/resources/application-maxkey-openapi.properties | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/maxkey-webs/maxkey-web-maxkey/src/main/resources/application-maxkey.properties b/maxkey-webs/maxkey-web-maxkey/src/main/resources/application-maxkey.properties index 618087634..c559ab575 100644 --- a/maxkey-webs/maxkey-web-maxkey/src/main/resources/application-maxkey.properties +++ b/maxkey-webs/maxkey-web-maxkey/src/main/resources/application-maxkey.properties @@ -103,9 +103,9 @@ maxkey.notices.visible =false spring.datasource.type =com.alibaba.druid.pool.DruidDataSource #mysql spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver -spring.datasource.username =root -spring.datasource.password =root -spring.datasource.url =jdbc:mysql://127.0.0.1:3306/maxkey?useSSL=false&serverTimezone=UTC +spring.datasource.username =${DATABASE_USER:root} +spring.datasource.password =${DATABASE_PWD:maxkey} +spring.datasource.url =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?allowPublicKeyRetrieval=true&useSSL=false&autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC #highgo #spring.datasource.driver-class-name=com.highgo.jdbc.Driver #spring.datasource.username=highgo diff --git a/maxkey-webs/maxkey-web-mgt/src/main/resources/application-maxkey-mgt.properties b/maxkey-webs/maxkey-web-mgt/src/main/resources/application-maxkey-mgt.properties index f967c3ae5..84ec223eb 100644 --- a/maxkey-webs/maxkey-web-mgt/src/main/resources/application-maxkey-mgt.properties +++ b/maxkey-webs/maxkey-web-mgt/src/main/resources/application-maxkey-mgt.properties @@ -76,9 +76,9 @@ maxkey.login.jwt.issuer =${LOGIN_JWT_ISSUER:${maxkey.ser spring.datasource.type =com.alibaba.druid.pool.DruidDataSource #mysql spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver -spring.datasource.username =root -spring.datasource.password =root -spring.datasource.url =jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false +spring.datasource.username =${DATABASE_USER:root} +spring.datasource.password =${DATABASE_PWD:maxkey} +spring.datasource.url =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?allowPublicKeyRetrieval=true&useSSL=false&autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC #highgo #spring.datasource.driver-class-name=com.highgo.jdbc.Driver #spring.datasource.username=highgo diff --git a/maxkey-webs/maxkey-web-openapi/src/main/resources/application-maxkey-openapi.properties b/maxkey-webs/maxkey-web-openapi/src/main/resources/application-maxkey-openapi.properties index 7a372941b..11da7cbe9 100644 --- a/maxkey-webs/maxkey-web-openapi/src/main/resources/application-maxkey-openapi.properties +++ b/maxkey-webs/maxkey-web-openapi/src/main/resources/application-maxkey-openapi.properties @@ -78,7 +78,7 @@ spring.datasource.type =com.alibaba.druid.pool.DruidDat spring.datasource.driver-class-name =com.mysql.cj.jdbc.Driver spring.datasource.username =${DATABASE_USER:root} spring.datasource.password =${DATABASE_PWD:maxkey} -spring.datasource.url =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC +spring.datasource.url =jdbc:mysql://${DATABASE_HOST:localhost}:${DATABASE_PORT:3306}/${DATABASE_NAME:maxkey}?allowPublicKeyRetrieval=true&autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC #highgo #spring.datasource.driver-class-name=com.highgo.jdbc.Driver #spring.datasource.username=highgo