报错
java.sql.SQLNonTransientConnectionException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near ‘;characterEncoding=utf-8’.
把connection连接数据库得url地址中改为一下内容,根据自己实际情况修改
connection = getConnection("jdbc:mysql://127.0.0.1:3306/day17?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT","root","123456");