1. Class.forName("com.gc.jdbc.driver"); //加载驱动 DriverManger.getConnection(""); //获得连接 转载于:https://www.cnblogs.com/hy87/p/5982323.html