连接数据库的警告:Establishing SSL connection without server’s identity verification is not recommended.

修改URL即可,在后面补上useSSL=false
以spring为例子:

spring.datasource.url=jdbc:mysql://localhost:3306/keji?characterEncoding=utf-8&&&useSSL=false

你可能感兴趣的:(java的那些坑)