Eclipse+ MySQL数据库运行报错:WARN: Establishing SSL connection

Tue Oct 23 09:29:16 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements 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.

解决方案

修改数据库连接配置 application.properties

加上useSSL=false即可

spring.datasource.url=jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=UTF-8&useSSL=false

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • =========================================================...
    lavor阅读 8,836评论 0 5
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,546评论 19 139
  • =========================================================...
    _灯火阑珊处阅读 7,120评论 0 3
  • (1) 我从未想过我会婚内出轨,然而这却实实在在的发生了。 我并不是水性杨花的女人,两年前嫁给刘泽凡时,我们许诺执...
    CC_f4c8阅读 1,716评论 0 0
  • 我不懂浪漫 不会写诗 但我知道你喜欢诗 请让我用诗的方式与你交流 我不懂疼你 让你哭泣 但我知道你很疼我 请让我用...
    一亿小目标阅读 1,943评论 0 3