【警告】mysql链接警告信息:Establishing SSL connection without server's identity verification is not recommended

1 完整信息

1
Mon Jun 01 06:46:21 CST 2020 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.

  

2 自己在链接信息加上参数

useSSL=false

例如
spring.datasource.url=jdbc:mysql://58.xxx.xx.XXX:3306/XXXX?useSSL=false&useUnicode=true&characterEncoding=utf8  
posted @   Questions张  阅读(281)  评论(0编辑  收藏  举报
编辑推荐:
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
阅读排行:
· Blazor Hybrid适配到HarmonyOS系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 解决跨域问题的这6种方案,真香!
· 分享4款.NET开源、免费、实用的商城系统
· 一套基于 Material Design 规范实现的 Blazor 和 Razor 通用组件库
历史上的今天:
2019-06-01 【异常】~/.bash_profile:source:44: no such file or directory: /usr/local/Cellar/nvm/0.34.0/nvm.sh
2019-06-01 【异常】org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
2019-06-01 【异常】org.apache.hadoop.hdfs.server.common.InconsistentFSStateException
2019-06-01 【异常】org.apache.phoenix.exception.PhoenixIOException: SYSTEM:CATALOG
点击右上角即可分享
微信分享提示