我正在使用springboot / hibernate / tomcat8,并尝试在连接到我的远程RDS实例时在本地运行我的项目。我已经在互联网上寻找答案而没有找到解决方案。我不认为错误消息表明实际问题。我不认为数据源URL是正确的,但尝试了一些替代方案。任何人都可以确认这是正确的语法吗?
另外,我已经设置了安全组来接受来自我的ip的所有TCP连接。我是否认为tomcat将通过我的IP地址汇集?
另外,我可以使用RDS中的主用户名连接hibernate吗?
我收到了错误; org.postgresql.util.PSQLException: FATAL: password authentication failed for user "correctusername"
这是我的application.properties文件;
spring.datasource.url=jdbc:postgresql:xxxxxxx.xxxxxx.eu-west-1.rds.amazonaws.com:5432
spring.datasource.username=correctusername
spring.datasource.password=correctpassword
spring.datasource.driverClassName=org.postgresql.Driver
感谢您的时间和耐心。