根据教材给出的代码做出改动
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
**<%@ page import="java.sql.*" %>**
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
Connection con=null;
Statement st=null;
ResultSet rs=null;
try{
Class.forName("com.mysql.**cj**.jdbc.Driver");
}catch(ClassNotFoundException e){
e.printStackTrace();
}
try{
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/数据库名?***serverTimezone=CTT&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true***","用户名","密码");
st=con.createStatement();
rs=st.executeQuery("select * from user");
while(rs.next())
{
out.print(rs.getString("name")+" ");
out.print(rs.getString("password")+" ");
out.print("<br>");
}
}catch(SQLException e){
e.printStackTrace();
}finally{
rs.close();
st.close();
con.close();
}
%>
</body>
</html>