【发布时间】:2019-10-30 19:54:50
【问题描述】:
我有一个 Spring Boot 应用程序,它已经可以连接到我笔记本电脑中的本地 Postgres。我将我的 Spring Boot jar 文件上传到弹性 beanstalk 并且部署良好我可以看到我的应用程序中的所有内容,但它无法连接到我在 RDS 中创建的 Postgres db。
我已尝试将 rds 数据库实例名称的数据库标识符和主密码放在应用程序属性文件中,但不起作用。
#cloud.aws.rds.mydbinstanceidentifier
#cloud.aws.rds.testdbspringiloilo.password=mydbmasterpassword
当我尝试请求来自数据库的对象时,它会显示一个白标签页面,告诉我它已超时。
【问题讨论】:
-
你能显示你的 pom.xml 我假设缺少依赖项
-
嗨,Simon,这里是 pom 文件的链接dropbox.com/s/dbclfjg3stvh068/pom.txt?dl=0
标签: postgresql amazon-web-services spring-boot amazon-elastic-beanstalk