最新在使用H2数据库进行单元测试,如果正常运行也想使用就做如下配置:
spring:
datasource:
url: jdbc:h2:~/test
driver-class-name: org.h2.Driver
username: sa
password: 123456
jpa:
database: h2
hibernate:
ddl-auto: update
show-sql: true
h2:
console:
path: /h2-console
enabled: true
server.port=8881
logging.level.org.hibernate=DEBUG