spring:
jpa:
hibernate:
ddl-auto: update
show-sql: true
database-platform: org.hibernate.dialect.H2Dialect
datasource:
url: jdbc:h2:file:D:/data/db
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
本文详细介绍如何在Spring Boot应用中使用H2数据库,包括JPA的Hibernate配置,如DDL自动创建和SQL显示,以及H2数据库控制台的启用。
1129

被折叠的 条评论
为什么被折叠?



