Hibernate 4 Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

后端 未结 12 1729
青春惊慌失措
青春惊慌失措 2021-01-17 14:25

I am using Hibernate latest version 4.3.5.Final.

My hibernate.cfg.xml file content:



        
12条回答
  •  情歌与酒
    2021-01-17 14:52

    I encountered this issue when using the following:

    • Spring Framework / Data: 4.1.6;
    • Spring Boot: 1.2.3;
    • Hibernate provider for JPA: 4.3.8.

    I had SSL enabled on the database side as part of the host-based authentication mechanism (using Postgres) and the issue was that I hadn't specified the SSL JVM properties related to the key store containing the certificate of the client app when starting the application:

    -Djavax.net.ssl.keyStore=mykeystore.jks -Djavax.net.ssl.keyStorePassword=myPassword

    Note: I understand the answer has already been answered, but I'm leaving this answer for future reference.

提交回复
热议问题