Driver Jdbc Postgresql !full!
try (Connection conn = DriverManager.getConnection(url, user, pass); PreparedStatement pstmt = conn.prepareStatement(sql))
String url = "jdbc:postgresql://host1:5432,host2:5432/mydb?targetServerType=primary"; driver jdbc postgresql
You can append parameters to the JDBC URL to tweak behavior. try (Connection conn = DriverManager