123456789101112131415161718192021 |
- # H2数据库配置文件
- spring:
- datasource:
- url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
- driver-class-name: org.h2.Driver
- username: sa
- password:
-
- jpa:
- hibernate:
- ddl-auto: create-drop # 每次启动时重新创建表
- show-sql: true
- properties:
- hibernate:
- format_sql: true
- dialect: org.hibernate.dialect.H2Dialect
-
- h2:
- console:
- enabled: true
- path: /h2-console
|