feat: 增加mysql作为后端数据库
This commit is contained in:
@@ -3,12 +3,29 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: bookstore
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: true
|
||||
|
||||
---
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: h2
|
||||
datasource:
|
||||
url: jdbc:h2:file:./database;DB_CLOSE_ON_EXIT=FALSE
|
||||
driver-class-name: org.h2.Driver
|
||||
username: lanyuanxiaoyao
|
||||
password: lanyuanxiaoyao
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: true
|
||||
|
||||
---
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: mysql-local
|
||||
datasource:
|
||||
url: jdbc:mysql://192.168.31.127:3780/bookstore
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: bookstore
|
||||
password: EzSn+RZ*x2&fHFh9kC+H
|
||||
|
||||
Reference in New Issue
Block a user