gistfile1.txt private static DataSource source;private static ThreadLocal local=new ThreadLocal (); static{ Properties pro = new Properties(); InputStream in = DBCPUtils.class.getClassLoader().getResourceAsStream("dbcpconfig.properties"); t
private static DataSource source; private static ThreadLocallocal=new ThreadLocal (); static{ Properties pro = new Properties(); InputStream in = DBCPUtils.class.getClassLoader().getResourceAsStream("dbcpconfig.properties"); try { pro.load(in); BasicDataSourceFactory factory = new BasicDataSourceFactory(); source = factory.createDataSource(pro); } catch (Exception e) { new ExceptionInInitializerError(e); }