Commons DbUtils是Apache组织提供的一个对JDBC进行简单封装的开源工具类库,使用它能够简化JDBC应用程序的开发,同时也不会影响程序的性能。
import cn.xyh.util.C3P0Utils;
import org.apache.commons.dbutils.QueryRunner;
QueryRunner queryRunner = new QueryRunner(C3P0Utils.getDataSource());
Commons DbUtils是Apache组织提供的一个对JDBC进行简单封装的开源工具类库,使用它能够简化JDBC应用程序的开发,同时也不会影响程序的性能。
import cn.xyh.util.C3P0Utils;
import org.apache.commons.dbutils.QueryRunner;
QueryRunner queryRunner = new QueryRunner(C3P0Utils.getDataSource());