Springboot-Mybatis 连接数据库
好久没用Springboot,今儿个用了下,在搭建数据库的时候发现:
- log框中提示:
Wed Jun 03 23:41:30 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
- 在mysql5.多版本开始就不建议显示SSL?如果没有设置显式选项,则必须在默认情况下建立SSL连接,这里提示说,如果禁用,或者按它说的验证身份,由于还处于初步开发阶段,因此我选择禁用
- 然后警告就没了。