摘要:
一、普通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... 阅读全文