【问题标题】:Postgres connection with Spring Boot via sshPostgres 通过 ssh 与 Spring Boot 连接
【发布时间】:2020-02-24 21:46:17
【问题描述】:

我需要使用 Spring Boot 在 Scaleway 实例上为我的 api 服务创建与我的 Postgres 数据库的连接。目前我需要通过我的 ssh 密钥进行连接。

有人有指导或帮助我吗?我在我的第二个 API 项目中,所以我不是这样的专家:/

非常感谢

【问题讨论】:

    标签: postgresql spring-boot ssh proxy


    【解决方案1】:

    postgres 需要访问 jdbc 协议,而不是 ssh。
    见:https://mkyong.com/spring-boot/spring-boot-spring-data-jpa-postgresql/

    【讨论】:

    • 是的,没错。你知道我在本地开发过程中是如何设置的吗?我必须以任何方式打开 ssh 隧道吗?
    猜你喜欢
    • 2019-05-13
    • 2018-06-26
    • 1970-01-01
    • 2020-09-14
    • 2013-10-10
    • 2016-02-11
    • 2018-08-14
    • 2017-11-24
    相关资源
    最近更新 更多