SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’.

项目运行出现以下报错:

SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
 

我出现的原因:安装的 mysql是 8.0版本,但是驱动包版本太低;

我解决的方式:卸载 8.0版本的 mysql,安装 5.0版本的 mysql 。

注意:出现报错,我首先搜索错误,按照大佬博文去修改代码,但是错误没解决。

  在我安装 5.0版本 mysql后,项目可以运行。
posted @ 2020-12-15 20:59  ping4  阅读(1021)  评论(0编辑  收藏  举报