0

我正在尝试将 Intersystems IRIS 数据库与 Quarkus 一起使用,但我遇到了使它工作的问题 有人知道如何在 Quarkus 上设置 Intersystems IRIS 数据库吗?

我在我的 pom.xml 上这样做了,还添加了 jar hibernate-iris-1.0.0.jar 和 intersystems-jdbc-3.2.0.jar 但它不起作用

<dependency>
            <groupId>com.intersystems</groupId>
            <artifactId>intersystems-jdbc</artifactId>
            <version>3.2.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/src/main/resources/intersystems-jdbc-3.2.0.jar</systemPath>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-iris</artifactId>
            <version>1.0.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/src/main/resources/hibernate-iris-1.0.0.jar</systemPath>
        </dependency>

这是我的 application.properties

quarkus: datasource: db-kind: other username: _system password: ***** jdbc: url: jdbc:IRIS://localhost:1972/USER driver: com.intersystems.jdbc.IRISDriver hibernate-orm: dialect: org.hibernate.dialect.InterSystemsIRISDialect jdbc: timezone: UTC
4

1 回答 1

0

我找到了解决方案,要在 Quarkus 上设置 Intersystems IRIS,您需要手动添加 jar 文件,还需要设置 pom.xml,Intersystems 的一些设置也作为 java 类进行。您可以在 GitHub 上查看我的项目的解决方案,这是链接:https ://github.com/JoseAdemar/quarkus-project-with-intersystems-ris-database

于 2022-02-21T12:07:47.497 回答