Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
去了stackoverflow:
java - Spring Boot JPA - Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set - Stack Overflow
不是PostgreSQL,那就换成mysql的嘛:
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Kingbase8Dialect
Could not load requested class : org.hibernate.dialect.Kingbase8Dialect
增加方言类:
class Kingbase8Dialect extends PostgreSQL9Dialect文章来源:https://www.toymoban.com/news/detail-519702.html
@Override
public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData)
throws SQLException {
if (dbMetaData == null) {
builder.setQuotedCaseStrategy(IdentifierCaseStrategy.MIXED);
}
builder.applyIdentifierCasing( dbMetaData );
builder.applyReservedWords( dbMetaData );
builder.applyReservedWords( AnsiSqlKeywords.INSTANCE.sql2003() );
builder.applyReservedWords(super.getKeywords());
builder.setNameQualifierSupport( getNameQualifierSupport() );
builder.setUnquotedCaseStrategy(IdentifierCaseStrategy.MIXED);
return builder.build();
Caused by: java.lang.RuntimeException: Driver org.postgresql.Driver claims to not accept jdbcUrl, jdbc:kingbase8:
增加配置:
spring.datasource.ddb.driver-class-name=com.kingbase8.Driver文章来源地址https://www.toymoban.com/news/detail-519702.html
couldn’t deduct database type from database product name ‘KingbaseES’
到了这里,关于【Kingbase8数据库】springboot jpa集成Kingbase8各种报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!