连接池工具类:
db.properties配置文件:
使用:
Connection conn= DBConnectionUtil.getInstance().getConnection("mysql")
DBConnectionUtil.getInstance().freeConnection("mysql",localConnection);
连接池工具类:
db.properties配置文件:
使用:
Connection conn= DBConnectionUtil.getInstance().getConnection("mysql")
DBConnectionUtil.getInstance().freeConnection("mysql",localConnection);