首页 > 解决方案 > Postgres 通过 ssh 与 Spring Boot 连接

问题描述

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

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

非常感谢

标签: postgresqlspring-bootsshproxy

解决方案


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


推荐阅读