【发布时间】:2022-01-17 10:50:10
【问题描述】:
我有一个项目,我们连接到 AWS 数据库以运行 Spring Boot 启动项目(使用 java、html 和 css)。我在程序中没有编译错误,但是当我运行程序通过代码工作时,spring boot程序被终止而没有成功运行。我尝试查看代码的几个不同方面,但找不到任何问题。我也安装了tomcat。任何帮助或反馈将不胜感激。我为我的 Spring Boot 程序附加了下面的应用程序属性。如果还有什么有用的,请告诉我。
主要错误:java.sql.SQLNonTransientConnectionException:不允许检索公钥 应用程序.properties
##spring.datasource.url=jdbc:mysql://cis175group.c3yjnhalr3i9.us-east-1.rds.amazonaws.com/petreg?useSSL=false
spring.datasource.url=jdbc:mysql://localhost:3306/petreg?useSSL=false
##spring.datasource.username=admin
##spring.datasource.password=airplanecar
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=password
spring.jpa.database-platform = org.hibernate.dialect.MySQL8Dialect
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto = update
# ==============================================================
# = Show or not log for each sql query
# ==============================================================
spring.jpa.show-sql = true
spring.jpa.properties.hibernate.format_sql = true ```
【问题讨论】:
标签: java mysql spring-boot tomcat