The PoolMan library and virtual JDBC2.0 driver provide Java object pooling, with particular extensions for database resources and caching SQL queries/results across multiple databases. PoolMan eliminates a common bottleneck in enterprise apps and ma
public class Jdbc2 { public static void main(String[] args){ //加载驱动类 try { Class.forName("org.postgresql.Driver"); //建立连接(连接对象内部其实包含了Socket对象,是一个远程的连接,这是Connection对象管理的一个要点) //真正开放中,为了提高效率,都会使用连接池来管理连接对象 Connection coon= Dr iverManager.getConnection