|NO.Z.00092|——————————|BigDataEnd|——|Java&MySQL.数据库连接池和DBUtils.V01|——|MySQL.v01|连接池介绍|

一、[数据库连接池介绍]
### --- 什么是连接池

——>        实际开发中“获得连接”或“释放资源”是非常消耗系统资源的两个过程,
——>        为了解决此类性能问题,通常情况我们采用连接池技术,来共享连接Connection。
——>        这样我们就不需要每次都创建连接、释放连接了,这些操作都交给了连接池.
### --- 连接池的好处

——>        用池来管理Connection,这样可以重复使用Connection。 
——>        当使用完Connection后,调用Connectionclose()方法也不会真的关闭Connection,
——>        而是把Connection“归还”给池。
二、JDBC方式与连接池方式:普通 JDBC方式
连接池方式

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-04-06 15:26  yanqi_vip  阅读(27)  评论(0)    收藏  举报

导航