org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
Add Hibernate specific properties in the application.properties
For Postgre database:
spring.datasource.url=jdbc:postgresql://localhost:5432/teste
spring.datasource.username=username
spring.datasource.password=passsword
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=create
For MySQL Database:
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
For xml base configuration in my META-INF/persistence.xml
spring.jpa.database-platform<properties>
<property name="hibernate.transaction.jta.platform"
value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
<property name="spring.jpa.database-platform" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="spring.jpa.show-sql" value="false" />
</properties=org.hibernate.dialect.MariaDB53Dialect>
No comments:
Post a Comment