【发布时间】:2017-04-01 03:55:48
【问题描述】:
Application.properties:
spring.jpa.database-platform=org.hibernate.dialect.TeradataDialect
数据源bean:
@Bean
public DataSource dataSource() {
return DataSourceBuilder
.create()
.driverClassName("com.teradata.jdbc.TeraDriver")
.username("dbc")
.password("dbc")
.url("jdbc:teradata://name/DBC")
.build();
}
但我收到此错误:
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
【问题讨论】:
-
分享 application.properties 吗?
-
这是整个 application.properties ,我已经从 post 的代码中添加了 DataSource bean
标签: java spring hibernate spring-data-jpa teradata