【解决】WARN: Establishing SSL connection without server‘s identity verification is not recommended. Ac
警告不建议在没有服务器身份验证的情况下建立SSL连接。根据MySQL5.5.45+,5.6.26+和5.7.6+要求,如果未设置显式选项,则必须默认建立SSL连接。为了符合不使用SSL的现有应用程序,verifyServerCertificate属性设置为“false”。...
·
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'.
中文翻译:
警告:不建议在没有服务器身份验证的情况下建立 SSL 连接。根据MySQL 5.5.45 +,5.6.26 +和5.7.6 +要求,如果未设置显式选项,则必须默认建立SSL连接。为了符合不使用 SSL 的现有应用程序,verifyServerCertificate 属性设置为“false”。
解决方法如下:
修改URL即可 String url="jdbc:mysql://localhost:3306/test01?useSSL=false";
更多推荐
已为社区贡献1条内容
所有评论(0)