今年6月初,我运行了我的一个应用程序,没有出现任何问题。今天再次尝试运行它时,在控制台上出现以下错误:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 公钥检索不允许
有什么解决方法吗?
我已经进行了研究,但没有找到与Spring Boot应用程序特定相关的信息。
applications.properties中的设置:
spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp
spring.datasource.url = jdbc:mysql://localhost:3306/testdb?verifyServerCertificate=false&useSSL=false&requireSSL=false&useJDBCCompliantTimezoneShift=true&serverTimezone=UTC
spring.datasource.username = root
spring.datasource.password =
spring.jpa.show-sql = true
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto = update
spring.jpa.hibernate.naming.implicit-strategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 不允许检索公钥
https://dev59.com/VFUL5IYBdhLWcg3waXcr
- Doctor WhouseSSL=false&allowPublicKeyRetrieval=true
但仍然无法解决问题。 - wallwalker