【发布时间】:2018-09-28 00:32:35
【问题描述】:
我尝试在 YML 中为 jpa 设置休眠方言,
检查了很多主题,但没有设置:
spring:
datasource:
hikari:
allow-pool-suspension: true
connection-timeout: 1000
name: testDb
jpa:
database: h2
generate-ddl: false
database-platform: h2
package-to-scan: com.x.model
properties:
hibernate:
dialect: com.x.data.core.hibernate.dialect.ExtendedH2Dialect
h2:
console:
enabled: true
path: /h2
如何解决这个问题?
【问题讨论】:
标签: spring hibernate spring-boot jpa configuration