首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring Data JPA:未设置'hibernate.dialect‘时,对DialectResolutionInfo的访问不能为null

Spring Data JPA:未设置'hibernate.dialect‘时,对DialectResolutionInfo的访问不能为null
EN

Stack Overflow用户
提问于 2020-10-04 18:48:16
回答 1查看 4.8K关注 0票数 0

我正在尝试通过使用"spring-boot-starter-data-jpa“来访问SQLite。

并且使用了"application.properties“。方言设置在"spring.jpa.database-platform“。但是会出现"DialectResolutionInfo不能为空“的错误。我该怎么办?

代码语言:javascript
复制
spring.jpa.database-platform=com.luminous.spring.dialect.SQLDialect
spring.jpa.hibernate.ddl-auto=create

spring.datasource.url=jdbc:sqlite:D:\\employee.db
spring.datasource.driver-class-name=org.sqlite.JDBC
spring.datasource.initialization-mode=always
spring.datasource.username = admin
spring.datasource.password = admin
EN

回答 1

Stack Overflow用户

发布于 2020-10-04 18:59:22

尝试在application.properties文件中添加spring.jpa.hibernate.dialect = org.hibernate.dialect.SQLiteDialect

另请参阅org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set,了解更多可能的解决方案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64193673

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档