1
0

feat: 数据库转移到mysql

This commit is contained in:
2025-09-29 13:49:54 +08:00
parent 026c72c4de
commit 9e9f65da76
2 changed files with 8 additions and 3 deletions

View File

@@ -58,6 +58,11 @@
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>

View File

@@ -9,10 +9,10 @@ spring:
async: async:
request-timeout: 3600000 request-timeout: 3600000
datasource: 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 username: bookstore
password: bookstore password: EzSn+RZ*x2&fHFh9kC+H
driver-class-name: org.h2.Driver driver-class-name: com.mysql.cj.jdbc.Driver
jpa: jpa:
generate-ddl: false generate-ddl: false
hibernate: hibernate: