21Spring_JdbcTemplatem模板工具类的使用——配置文件(连接三种数据库连接池)

时间:2022-04-23 04:42:19

上一篇文章提到过DriverManagerDataSource只是Spring内置的数据库连接池,我们可选的方案还有c3p0数据库连接池以及DBCP数据库连接池。

所以这篇文章讲一下上面三种数据库连接池的配置文件的形式。

第一种:DriverManagerDataSource:Spring内置的数据库连接池。

第一步:编写配置文件:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <!-- 配置spring 本身自带的数据库连接池 这一步相当于
//1.创建数据库连接池,使用spring内置的连接池
DriverManagerDataSource dataSource=new DriverManagerDataSource();
//连接数据库驱动
dataSource.setDriverClassName("com.mysql.jdbc.Driver");
dataSource.setUrl("jdbc:mysql:///spring3_day2");
dataSource.setUsername("root");
dataSource.setPassword("root"); -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<!-- 初始化dataSource里面的参数 -->
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql:///spring3_day2"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
</bean> <!-- 构建一个jdbcTemplate的模板对象 ,这个模板对象里面有dataSource这个变量,这里给他赋予初始值
这一步相当于: //2.通过连接池构造模板对象
JdbcTemplate jdbcTemplate=new JdbcTemplate(dataSource); -->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"/> </bean> </beans>

第二步:编写Junit测试代码:

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:applicationContext.xml") public class Jdbctest {
//为了注解(根据类型注解的),不加这个注释的话 Spring怎么给jdbcTemplate赋值
@Autowired
private JdbcTemplate jdbcTemplate;
@Test
public void jdbcTemplatetest()
{
jdbcTemplate.execute("create table person2(id int primary key,name varchar(20))"); } }

结果:

创建了一个person2的表。

第二种:Apache的Dbcp连接池

第一步:从下载的依赖包(spring-framework-3.0.2.RELEASE-dependencies下的org.apache.commons里面)里导入Dbcp连接池的jar包。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkkAAABxCAIAAABOVKCKAAAgAElEQVR4nO2deVhUR7r/vb/nTu5M8szN3MkkUYjRGBdkEVEBUQNOVFRQcWdr9l1EQATRiIBBxQ0hLAKK4AK4gIAoAiIKCMimKMgu+w4NNDu9UL8/3od6Kt2ATEJQOvX5q0/VOXXqVFfVt+qt95yagSgUCoVCES5mfOgMUCgUCoUyyVBto1AoFIqwQbWNQqFQKMIG1TYKhUKhCBtU2ygUCoUibEydtg1TKBQKRRiZMh2ZOH+stgkWAY9CoVAowsJHK3V/lLZhJeNSKBQK5c8BKXh/kLhMkMnXNj5VGxphkEKhUCjCCO7n2Ww2FrkPq3CTrG3wMFwul8PhDA0NDQwM9PX1dXd3s1isTgqFQqEII11dXT09PX19ff39/VjhPqy8Tb62gbCR2tbT08NisbpG+ND/AoVCoVAmgS4CJpPZ3t4OIgcKh+VtclVmgkymtoEpEoRtEpOlUCgUykdOS0tLZWVlY2NjW1sbi8Xq6+v7sPI2adqGl9nA6jpZyVIoFArl4+fdu3d5eXmlpaW1tbWtra0sFqu/v5/D4Xwoy+Rkahv4jwwMDAwMDExWshQKhUL5+Hn9+nViYmJOTk5RUVFtbW17e3tPT88HnLpNjrbhSRubze7t7e3r65uUZCkUCoUyLUhLSwsPD09KSsrJySkrK2tqaurq6hoYGGCz2dNe28Djv7u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XV1dAwMDHA6Hx+NNV21Do5kla2pqYGPPlJSUhISE2NjY6Ojoe/fuRUZGRkZGRlAoFApl2gI9+b1796Kjox88eJCYmJiampqXl1dSUlJXV8dkMnt6erAjyfTWNnLq1tXV1draWltbW1ZWVlBQkJeX9+LFi4yMjPT09OcUCoVCmf6kp6enp6dnZGRkZWXl5eUVFhaWl5fX1dW1t7ezWKz+/n48aZvG2oaIqRubze7r62OxWO3t7Y2NjTU1NZWVleXl5aWlpSUUCoVCESLKysrKy8srKytra2ubmpqYTCYIG/YimXphQ5OrbWhE3jgcztDQUH9/f09PD4vFYjKZbW1tra2tzRQKhUIRLlpaWlpbW9vb2zs6OlgsVm9v7wcXNvRHaBuevYHCDQwM9Pb29vb2dlMoFApFGOnp6ent7e3r6xsYGGCz2RwOBwubkGgb+rW8gX0SGKJQKBSKMIL7eVC1Dy5s6I/QNgArHBY5CoVCoQg30Od/WFUD/ihtA4YF4FEoFApFWBDs5D+4qgF/rLZRKBQKhTL1UG2jUCgUirBBtY1CoVAowgbVNgqFQqEIG1TbKBQKhSJsUG2jUCgUirBBtY1CoVAowgbVNgqFQqEIG1TbKBQKhSJsUG2jUCgUirDx/wE9atQPLJcQtQAAAABJRU5ErkJggg==" alt="" />

第二步:在配置文件中配置数据库连接

 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql:///spring3_day2"></property>
<property name="username" value="root"></property>
<property name="password" value="root"></property>
</bean>

其他什么都不用改。

结果和以前的一样。

第三种:C3P0的连接池

第一步:从Spring的依赖库里找jar包。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAh8AAABMCAIAAABCukL2AAAgAElEQVR4nO2dd1hUV/rH2X12E5/NJrtBo9GoGBkYBDsaO0ZBBBUNKEVRkCJIsCFVkW5DjaI0UUSigtiAoAKKFAFBQIqA9DIDjNQpMExn5v7+OOv53b0zjIi4Rjyfx8eHOe/7nntu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WgeYdPbGlpefbsGejEFovFubm52dnZ+PsrOTmZ4NCGW04eERExf/58eMfl5eXhb+q+vj5QX3G5XOkaY4ggdfmUyMrKIpFIMudEjQjV1dXm5ub4KykoKGj79u0y174hRh9CodDGxgb/Fpznz58bGBg8fvx4GG+W/PNQX18/ffp0wpyxz5wrV66oqqqidyQj/kNaWpqcZWvvD41GCwgIMMZha2tLeDkSYhQzMDAQERGxbds2eAGYm5vLfC3jp0VNTY2iouJgK2k+N+Li4oyNja2tre/cuYO+74L4D83NzefPn3/Pzyu9FU9PT4c3yFyZiBjdREVFwQsAvILoU4dOpwcFBQ3ve2Kjj/v37zs4OBBWNX0IkLogEAgEYuRB6oJAIBCIkQepCwKBQCBGHqQuCAQCgRh5kLogEAgEYuRB6oJAIBCIkQepCwKBQCBGHqQuCAQCgRh5KBSKq6srUJf4+HikLggEAoEYAahUqqurq6+vL1SXV69etbW1IXVBIBAIxPChUqnu7u7+/v6XLl1KSEjIycmpqqoaAXXp6elB6oJAIBCfLVQq9fDhw0ePHo2MjPzjjz9yc3PfS10GBgYEAkFvby+dTv+g70dDIBAIxJ+Zrq4uHx+fkydPRkdH379/Py8vr7q6+vXr1+D7ciKRaDjq0tfXx2AwuFwuh8MBStPZ2Umj0VpaWigUSlNTU2NjY2NjY0NDA/gfgUAgEJ80sEpvbGxsampqbm5+8eLF8ePHg4KCYmJiUlJSCgoK6urq2tvbWSzW8NWlv7+fTqe3trZWV1eDr2DFxMSEhYUFBgb6+fkdPnzY3d3d1dXV2dnZ2dn5IAKBQCA+cUB97uLi4ubm5uHh4e3tfezYsaCgoCtXrty7dy8jI6O0tLSpqamzs7O3t5fH472ruvwfM24qW06QfI0AAAAASUVORK5CYII=" alt="" />

第二步:在配置文件中配置数据库连接

 <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
  <property name="driverClass" value="com.mysql.jdbc.Driver"/>
  <property name="jdbcUrl" value="jdbc:mysql:///spring3_day2"></property>
 <property name="user" value="root"></property>
<property name="password" value="root"></property>
</bean>

其他什么都不用改。注意我用红色标出来的,这些都是和之前的数据库连接池不同的地方。去看C3P0的源代码就会发现,里面的成员变量就是这么定义的。

结果和以前的一样。