【问题标题】:Where to find the maven dependency for postgres 10在哪里可以找到 postgres 10 的 maven 依赖项
【发布时间】:2018-10-07 08:15:25
【问题描述】:

我将 postgreSQL 用于带有 JOOQ 的 jsf 应用程序。我想为我的应用程序升级 postgreSQL。我已将 Windows 上的 postgreSQL 版本从 9.5 更新到 10。现在我想在应用程序中添加一个 jar 进行测试。在this link 上,我只找到 9.4.x 之前的罐子,然后 42.x 系列才开始。

1) postgreSQL 10 的 jar 是什么,我如何知道/找到它?

2) 我当前的应用程序在 pom 文件中有 9.3-1102-jdbc41 依赖项。是不是意味着它的postgreSQL 9.3?

问候

【问题讨论】:

  • JDBC 驱动程序的版本号与 Postgres 服务器不同。 42.2.2 最新的驱动程序,将与 Postgres 10 一起使用。驱动程序的版本控制方案是changed with 42.0.0

标签: postgresql maven


【解决方案1】:

对于 postgreSQL 10,您可以使用以下 maven 依赖项

<dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>42.2.0</version>
        <scope>runtime</scope>
    </dependency>

【讨论】:

    猜你喜欢
    • 2011-10-13
    • 1970-01-01
    • 2013-01-24
    • 2017-06-12
    • 2015-05-21
    • 2016-03-04
    • 2017-06-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多