postgresql数据库无法连接
因为需要供其他人进行数据库连接 所以按照网上对pg_hba.conf进行了配置
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 192.168.0.0/24 md5
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
进行设置后 仍无法连接数据库
url="jdbc:postgresql://192.168.0.1:5432/