求大佬帮忙
这是我的代码
package com.jdbc.DButil;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DButil {
private static String driver="com.mysql.cj.jdbc.Driver";
private static String url = "jdbc:mysql://localhost:3306/jdgl?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC";/*
private static String user="root";
private static String password="19980226";
private static Connection conn = null;
private static PreparedStatement ps=null;
private static ResultSet rs=null;
//加载驱动
public static Connection getConn() throws SQLException {
try {
Class.forName(driver);
System.out.println("成功加载驱动");
conn=DriverManager.getConnection(url, user, password);
System.out.println("连接成功"