feat: 数据库转移到mysql
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -58,6 +58,11 @@
|
||||
<artifactId>h2</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user