日期:2014-05-16  浏览次数:20751 次

(转)hibernate C3P0数据源 连接Access数据库
http://wxinpeng.iteye.com/blog/203093
Xml代码 复制代码
  1. <?xml?version="1.0"?encoding="UTF-8"?>??
  2. <beans?xmlns="http://www.springframework.org/schema/beans"??
  3. ????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"??
  4. ????xsi:schemaLocation="http://www.springframework.org/schema/beans?http://www.springframework.org/schema/beans/spring-beans.xsd">??
  5. ???? ??
  6. ????<!--?定义数据源Bean,使用C3P0数据源实现?-->??
  7. ????<bean?id="dataSource"??
  8. ????????class="com.mchange.v2.c3p0.ComboPooledDataSource"??
  9. ????????destroy-method="close">??
  10. ????????<!--?指定连接数据库的驱动?-->??
  11. ????????<property?name="driverClass"?value="com.hxtt.sql.access.AccessDriver"?/>??
  12. ????????