新手求各位大牛赐教:<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:jdbc="http://www.springframework.org/schema/jdbc"       
      xmlns:context="http://www.springframework.org/schema/context"      
      xsi:schemaLocation="       
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd       
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd       
      http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd       
      http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd       
      http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"      
     default-autowire="byName">
   <context:annotation-config />
<!-- 导入属性配置文件 -->
    <context:component-scan base-package="com.dou.test" />
    
<!--   数据源 ds1-->
<bean id="dataSource1" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
<property name="driverClassName" value="net.sourceforge.jtds.jdbc.Driver"/>
<property name="url" value="jdbc:jtds:sqlserver://192.168.1.103:1433;DatabaseName=test"/>
<property name="username" value="test"/>
 <property name="password" value="test"></property>
 <property name="maxActive" value="20"/>
   <property name="maxIdle" value="20"/>
   <property name="maxWait" value="100000"/>
   <property name="defaultAutoCommit" value="true"/>
   <property name="removeAbandoned" value="true"/>
   <property name="removeAbandonedTimeout" value="600"/>
</bean><bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource3" />
</bean> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="configLocation" value="classpath:mybatis-config.xml" />
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="dMapper" class="org.mybatis.spring.MapperFactoryBean">
        <property name="sqlSessionFactory" ref="sqlSessionFactory" />
    <property name="mapperInterface" value="com.dou.test.data.dMapper"/>
</bean>
配置如上,犹豫数据库的服务器比较老所以创建连接的时候会比较慢,所以想到了用连接池,但是就这样依然还是很慢,每次需要使用数据库的时候都会重新“Fetching JDBC Connection from DataSource”这个时候会很慢
能不能用完之后不注销  Connection 下次可以直接用啊。