postgresql - Postgres 通过 ssh 与 Spring Boot 连接
问题描述
我需要使用 Spring Boot 在 Scaleway 实例上为我的 api 服务创建与我的 Postgres 数据库的连接。目前我需要通过我的 ssh 密钥进行连接。
有人有指导或帮助我吗?我在我的第二个 API 项目中,所以我不是这样的专家:/
非常感谢
解决方案
postgres 需要访问 jdbc 协议,而不是 ssh。
见:https ://mkyong.com/spring-boot/spring-boot-spring-data-jpa-postgresql/
推荐阅读
- vbscript - 如何编写将文件下载到启动文件夹的 VBS 文件
- java - Intellij 中奇怪的 Javadoc 包装
- github - GitHub Pages 正在显示自述文件内容
- python - 加载和编辑用于语法分析的 cfg 文件
- arrays - 对两个索引同步(配对)数组进行排序时,如何维护索引?
- c# - 如何将“Var”数据类型中的项目显示到 ListView 中?
- javascript - 在数组中找到总和等于给定值的最小元素
- java - 正则表达式从响应中获取特定字符串
- amp-html - 点击锚标签无法在 amp 中获取 href 值
- go - 增量构建不适用于 go build,仅适用于 go install