From 9e9f65da7602c443566cfb08c62a8fb6393704e5 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Mon, 29 Sep 2025 13:49:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB=E5=88=B0mysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 5 +++++ src/main/resources/application.yml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 53c3b46..fa17fad 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,11 @@ h2 runtime + + com.mysql + mysql-connector-j + runtime + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 0d934b3..b9f3a71 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -9,10 +9,10 @@ spring: async: request-timeout: 3600000 datasource: - url: jdbc:h2:file:./bookstore;DB_CLOSE_ON_EXIT=TRUE + url: jdbc:mysql://mysql.lanyuanxiaoyao.com:43780/bookstore?useUnicode=true&characterEncoding=utf8&useSSL=false username: bookstore - password: bookstore - driver-class-name: org.h2.Driver + password: EzSn+RZ*x2&fHFh9kC+H + driver-class-name: com.mysql.cj.jdbc.Driver jpa: generate-ddl: false hibernate: