why my spring app cant connect to DB?
hi guys. im using intellij idea to run my java spring app. i connected my db to the intellij idea.
im using ssh tunnel to connect to database. when i test the connection everything is fine. but the problem arises when i try to start my java spring app.
in
and when i start the app i get
whats wrong? can smb help me out pls? thanks in advance
im using ssh tunnel to connect to database. when i test the connection everything is fine. but the problem arises when i try to start my java spring app.
in
application.yaml i have this piece of configuration:and when i start the app i get
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.whats wrong? can smb help me out pls? thanks in advance