老师的服务在启动的时候没有关于数据库连接的SSL的警告吗
按照老师的配置添加了依赖和数据库连接信息,但是在启动的时候,控制台有如下红色警告:
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.
网上说,需要在数据库连接的URL中添加 useSSL=false|true
如下:
jdbc:mysql://127.0.0.1:3306/springboot?useSSL=false
但是不管我是填写useSSL=true,还是填写 useSSL=false ,这个警告都一直存在,怎么处理呢