使用JDBC实现网页登录页面,但出现500报错
运行结果及报错内容

报错指示是这一行代码
conn = new GetConnection().getConnection();
这个是我数据库连接代码
Connection conn =null;
public Connection getConnection() throws ClassNotFoundException{
String driver="com.mysql.cj.jdbc.Driver"; //驱动路径
String url="jdbc:mysql://localhost:3306/jdbc?serverTimezone="+"GMT%2B8&useUnicode=true&characterEncoding=utf-8";//数据库地址
String user="root"; //访问数据库的用户名
String password="666666"; //用户密码
Class.forName(driver);
try{
conn= DriverManager.getConnection(url,user,password);
}catch (SQLException e){
e.printStackTrace();
}
//返回Connection对象
return conn;
}
我创建的数据库名为jdbc,表名tb_user,数据库的密码就是666666
数据库信息附图

也引入了mysql的connect包
找了好久的问题,希望各位天使能帮帮忙,谢谢!
