数据库验证正确,JDBC连接Mysql报错

拼写错误
jdbc:myspl 改成j
jdbc:mysql
检查驱动包是否存在,JDBC.mysql 的连接URL 是这样的;
Class.forName("com.mysql.jdbc.Driver");
Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/xxx?characterEncoding=UTF-8&useSSL=false","root","xxx");