thingsboard Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
时间: 2023-11-14 08:05:38 浏览: 292
解决SpringDataJPA报错:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null w
根据提供的引用,"Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"错误是由于未设置'hibernate.dialect'属性而导致的。你可以在yml配置文件中添加如下内容以解决这个问题:
```
spring:
jpa:
show-sql: true
hibernate:
ddl-auto: create
database-platform: org.hibernate.dialect.PostgreSQLDialect
dialect: org.hibernate.dialect.PostgreSQLDialect
```
这样配置后,你将设置了正确的`hibernate.dialect`属性,从而解决了引起错误的问题。
阅读全文