Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String url = "jdbc:postgresql://localhost/test";
- Properties props = new Properties();
- props.setProperty("user","fred");
- props.setProperty("password","secret");
- props.setProperty("ssl","true");
- Connection conn = DriverManager.getConnection(url, props);
- String url = "jdbc:postgresql://localhost/test?user=fred&password=secret&ssl=true";
- Connection conn = DriverManager.getConnection(url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement