摘要: 1.Driver jdbc.properties: driver=com.mysql.jdbc.DriverjdbcUrl=jdbc:mysql://localhost:3306/mysqluser=rootpassword=1234 2.DriverManager 3.c3p0数据库连接池 c3p 阅读全文
posted @ 2018-05-06 01:11 chen_sg 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.Class.forName("com.mysql.jdbc.Driver"); 2. DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 3.System.setProperty("jdbc.drivers", "com.mysq 阅读全文
posted @ 2018-05-06 00:57 chen_sg 阅读(4162) 评论(0) 推荐(0) 编辑