We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9880d52 commit f531de8Copy full SHA for f531de8
src/main/java/com/example/App.java
@@ -15,7 +15,7 @@ public static void listarEstados() {
15
System.out.println("Listando estados cadastrados no banco de dados");
16
try {
17
Class.forName("org.postgresql.Driver");
18
- try(var conn = DriverManager.getConnection("jdbc:postgresql://localhost/meubanco", "postgres", "")){
+ try(var conn = DriverManager.getConnection("jdbc:postgresql://localhost/postgres", "postgres", "")){
19
var stm = conn.createStatement();
20
var result = stm.executeQuery("select * from estado");
21
while(result.next()) {
0 commit comments