【发布时间】:2019-07-15 17:18:06
【问题描述】:
JHipster 出现这种连接错误的原因是什么?
2019-07-15 10:11:55.643 DEBUG 30748 --- [nfoReplicator-0] org.postgresql.Driver : Connecting with URL: jdbc:postgresql://localhost:5432/{application_name}
2019-07-15 10:11:55.643 DEBUG 30748 --- [nfoReplicator-0] o.p.core.v3.ConnectionFactoryImpl : Trying to establish a protocol version 3 connection to localhost:5432
2019-07-15 10:11:55.644 DEBUG 30748 --- [nfoReplicator-0] org.postgresql.Driver : Connection error:
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.
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:280)
【问题讨论】:
标签: postgresql connection jhipster