mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-14 06:03:52 +08:00
完善章节4单元测试
This commit is contained in:
@@ -1,2 +1,15 @@
|
||||
## 开启 H2 数据库
|
||||
spring.h2.console.enabled=true
|
||||
|
||||
## 配置 H2 数据库连接信息
|
||||
spring.datasource.url=jdbc:h2:mem:testdb
|
||||
spring.datasource.driverClassName=org.h2.Driver
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
|
||||
|
||||
|
||||
## 是否显示 SQL 语句
|
||||
spring.jpa.show-sql=true
|
||||
spring.jpa.show-sql=true
|
||||
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
||||
hibernate.hbm2ddl.auto=create
|
||||
|
||||
Reference in New Issue
Block a user