Hibernate: PostgreSQL Driver issue

后端 未结 2 653
情歌与酒
情歌与酒 2021-01-14 13:02

I know that there are similar questions already, but the answers there didn\'t help me. So please would you mind to take a look at my particular question?

I am not v

相关标签:
2条回答
  • 2021-01-14 13:23

    If you are using maven or gradle.

    You can add this to ur pom.xml for maven

    <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>42.2.4</version>
    </dependency>
    

    And this for gradle

    // https://mvnrepository.com/artifact/org.postgresql/postgresql
    compile group: 'org.postgresql', name: 'postgresql', version: '42.2.4'
    
    0 讨论(0)
  • 2021-01-14 13:26

    You were close!

    You need to place your postgresql-<version>.jar directly in the lib folder of your servlet container.
    For instance, if you're working with Apache Tomcat, simply drop your jar under <TOMCAT_ROOT>/lib and you should be all set.

    0 讨论(0)
提交回复
热议问题