我正在尝试通过使用"spring-boot-starter-data-jpa“来访问SQLite。
并且使用了"application.properties“。方言设置在"spring.jpa.database-platform“。但是会出现"DialectResolutionInfo不能为空“的错误。我该怎么办?
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发布于 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,了解更多可能的解决方案。
https://stackoverflow.com/questions/64193673
复制相似问题