Java连接Mysql数据库警告:Establishing SSL connection witho

发布时间:2020-06-10 23:13:53 作者:神迹难觅
来源:网络 阅读:32912

当出现这种错误:

Thu Jan 04 22:49:59 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.

在设置连接数据源时候!设置改为这个!
spring.datasource.url=jdbc:mysql://localhost:3306/springbootdb?useUnicode=true&characterEncoding=utf8&useSSL=true


推荐阅读:
  1. kubernetes ssl证书梳理
  2. mysql如何通过SSL实现主从复制

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ssl ava ct

上一篇:mybatis3.0 配置等值连接两种方式:resultMap和resulttype

下一篇:apache2.2 和 2.4 虚拟主机配置文件

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》