摘要: 一、普通JDBC方式: static final String DB_DRIVER_CLASS = "com.mysql.jdbc.Driver"; static final String DB_URL = "mysql://localhost:3306/JBossatWorkDB?autoReconnect=true"; Connection connection = null; try { // Load the Driver. Class.forName(DB_DRIVER_CLASS).newInsta... 阅读全文
posted @ 2009-02-26 22:46 beta2013 阅读(268) 评论(0) 推荐(0) 编辑