gpt4 book ai didi

java - 无法获取 JDBC 连接;嵌套异常是 java.sql.SQLException Mule ESB

转载 作者:行者123 更新时间:2023-12-01 12:04:12 27 4
gpt4 key购买 nike

我在我的 mule 流程中使用外部 jar。 Jar 文件在 postgres 数据库中建立数据库连接。独立的 jar 文件工作正常。但是当我在我的 mule 中使用这个 jar 文件时,它给出了错误

Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:postgresql://xxx/xxx

我已在两个应用程序中添加 postgres jar 文件作为外部 jar(mule 应用程序和独立 jar)

最佳答案

java.sql.SQLException:找不到适合 jdbc:postgresql 的驱动程序 当 Java 未从提供的 jar 文件中找到驱动程序时,会出现异常。

您必须确保该 jar 正确并且它存在于您的项目类路径中。

关于java - 无法获取 JDBC 连接;嵌套异常是 java.sql.SQLException Mule ESB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27762565/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com