jmix版本2.2.1-233
postgresql版本42.6
配置:
main.datasource.url=jdbc:postgresql://xxx.xxx.xxx.xxx/postgres
main.datasource.username=postgres
main.datasource.password=postgres
注:使用数据库工具可以正常连接
jmix版本2.2.1-233
postgresql版本42.6
配置:
main.datasource.url=jdbc:postgresql://xxx.xxx.xxx.xxx/postgres
main.datasource.username=postgres
main.datasource.password=postgres
注:使用数据库工具可以正常连接
你好,欢迎加入社区!
172 开头的是内网地址?
对的,是内网
好的,这样我们可能没法给出更多的建议。从配置上看,应该是没有问题的。那个java.net.UnknownHostException
是无法解析服务器地址的错误。
可以检查一下网络是否有问题,比如 traceroute 172.16.3.16
查看路由是否能正常解析。
postgres的JDBC驱动版本是否匹配,用postgres的 pgadmin是否能连接。