摘要:
import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;public class DBUtil { //mysql数据库驱动 private final static String DRIVER="org.gjt.mm.mysql.Driver"; //数据库连接字符串 private final static String URL="jdbc:mysql://localhost:3306/db"; //用户名 private final 阅读全文