为什么在Mybatis中SSL怎么改都报错?

下面的代码无论我设置他的useSSl为true还是false,运行是成功了,但它都给我警告报红,实在不解

**
<property name="url" value="jdbc:mysql://localhost:3306/mybaits?useSSl=true&amp;useUnicode=true&amp;characterEncoding=utf8"/>**

警告如下:

Wed Sep 16 14:53:34 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.

图片说明

各位大佬们咋看

1个回答

useSSl=true
是SSL不是SSI

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问