我正在尝试获取我正在开发的应用程序以连接到Postgresql服务器。我已经从官方PostgresqlJDBC驱动程序页面下载了postgresql-42.2.5.jre7,将jar放在libs目录中,在类路径中添加了一行以便它可以编译。 at org.postgresql.jdbc.PgConnection.java.lang.ClassLoader.loadClass(ClassLoader.java:504)
我一直有以下错误的麻烦。我读过其他关于这个问题的帖子。我确信jdbc并不支持我想要使用的驱动程序。因此,正如其他人所建议的那样,我在application.yaml中添加了dirver属性cutomers: driver: com.mysql.jdbc.Driver# I have also tried: org.mariadb.jdbc.Driver
usern
我重新安装了postgresql并按原样创建了表,但我现在无法连接到它们。com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
connection = DriverManager.getConnection("jdbc:mysql://localhost:5432/" + dbName, user