在后台开发过程中有时会使用到MySQL,那么在浏览器或者Postman等工具上面进行对数据库数据进行操作的时候有时候会看到IDE中弹出如下警告:
报错:Tue Oct
30 16:
44:
38 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.
这个警告的大概意思是建立SSL连接,但是服务器没有身份认证,这种方法不建议使用。
要消除这个警告的方法也很简单,就是在连接MySQL的配置后面加上"&useSSL=false"就行了。
参考链接:http://www.mamicode.com/info-detail-1262842.html
转载于:https://www.cnblogs.com/EdenChanIy/p/9925778.html
相关资源:JAVA上百实例源码以及开源项目