在hibernate中使用C3P0数据源

1.导入jar包 2.加入配置 hibernate.c3p0.max_size:数据库连接池的最大连接数 hibernate.c3p0.min_size:数据库连接池的最小连接数 hibernate.c3p0.acquire_increment:当数据库连接池中的连接耗尽时,同一时刻获取多少个数据库连接 hibernate.c3p0.idle_test_period:表示连接池检测线程多长时间检测
相关文章
相关标签/搜索