原 WARN: Establishing SSL connection without server's identity verification is not recommended. Accordi
版权声明:本文为博主原创文章,请尊重他人的劳动成果,转载请附上原文出处链接和本声明。
本文链接:https://www.91mszl.com/zhangwuji/article/details/1295
项目连接mysql的时候出现如下的错误信息:
Mon Dec 21 12:24:01 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.
解决办法:在jdbc的url后面加上useSSL=false参数。
jdbc_url=jdbc:mysql://xxxx:3306/ms?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&useSSL=false
2020-12-21 13:41:34 阅读(726)
名师出品,必属精品 https://www.91mszl.com
博主信息