首页 > 技术文章 > java连接jdbc 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 defa

zhengshiqiang47 原文

conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/jsp_db","root","123456");

这个地方改成conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/jsp_db?useUnicode=true&characterEncoding=utf-8&useSSL=false","root","123456");

推荐阅读