SpringBoot项目启动Mysql报错:java.security.cert.CertificateNotYetValidException: NotBefore

SpringBoot项目启动Mysql报错:java.security.cert.CertificateNotYetValidException: NotBefore

报错信息

mysql java.security.cert.CertificateNotYetValidException: NotBefore: Wed Oct 10 15:35:05 CST 2013
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

SpringBoot项目启动Mysql报错:java.security.cert.CertificateNotYetValidException: NotBefore_第1张图片

解决

spring.datasource.url= jdbc:mysql://localhost:3306/library_cluster?serverTimezone=GMT%2b8&characterEncoding=UTF-8

将 useSSL=true 改为 useSSL=false
如果没有,就在最后面加上useSSL=false

spring.datasource.url= jdbc:mysql://localhost:3306/library_cluster?serverTimezone=GMT%2b8&characterEncoding=UTF-8&useSSL=false

你可能感兴趣的:(mysql,java,spring,boot)