Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 62fbb93

Browse files
Corrige nome do banco e usuário na String de conexão
1 parent b44cf93 commit 62fbb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void listarEstados() {
1414
System.out.println("Listando estados cadastrados no banco de dados");
1515
try {
1616
Class.forName("org.postgresql.Driver");
17-
try(var conn = DriverManager.getConnection("jdbc:postgresql://localhost/meubanco", "postgres", "")){
17+
try(var conn = DriverManager.getConnection("jdbc:postgresql://localhost/postgres", "gitpod", "")){
1818
var stm = conn.createStatement();
1919
var result = stm.executeQuery("select * from estado");
2020
while(result.next()) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /