Skip to content

Commit a31de89

Browse files
committed
Alterações no projeto para entrega
1 parent a46ad9f commit a31de89

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Postgres Playground
1+
## Postgres e Java Playground
22

33
[![](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/manoelcampos/java-postgres-playground)
44

src/main/java/com/example/App.java

-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public static void main(String[] args) {
1515

1616
public App(){
1717
try(var conn = getConnection()){
18-
carregarDriverJDBC();
1918
listarEstados(conn);
2019
localizarEstado(conn, "PR");
2120
listarDadosTabela(conn, "produto");
@@ -87,12 +86,4 @@ private void listarEstados(Connection conn) {
8786
private Connection getConnection() throws SQLException {
8887
return DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
8988
}
90-
91-
private void carregarDriverJDBC() {
92-
try {
93-
Class.forName("org.postgresql.Driver");
94-
} catch (ClassNotFoundException e) {
95-
System.err.println("Não foi possível carregar a biblioteca para acesso ao banco de dados: " + e.getMessage());
96-
}
97-
}
9889
}

0 commit comments

Comments
 (0)