5.运行项目连接Mysql时出现警告Establishing SSL connection without server‘s identity verification is not recommende

发布时间 2023-03-22 21:11:49作者: zhangdapangzi

  jdbc:mysql://localhost:3306/testdb?useSSL=false

添加上述加粗部分,即可解决该警告,标红参数前面为你数据库连接URL,如果有多个参数记得用&连接,例如

 jdbc:mysql://localhost:3306/testdb?characterEncoding=utf-8&useSSL=false