springibatis配置多数据源连接池说明

springibatis配置多数据源连接池说明

ID:32658394

大小:54.64 KB

页数:10页

时间:2019-02-14

springibatis配置多数据源连接池说明_第1页
springibatis配置多数据源连接池说明_第2页
springibatis配置多数据源连接池说明_第3页
springibatis配置多数据源连接池说明_第4页
springibatis配置多数据源连接池说明_第5页
资源描述:

《springibatis配置多数据源连接池说明》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、项「I中需要从多个数据库中存取数据,这时不得不配置多个数据源才能系统需求。先贴上來spring+ibatis配置文件里的主要配置代码,接下来将分不同的篇幅讲解各个配胃•之间的关系。我这可是项目屮正在使用的,若有需耍帮助的朋友可在线留言或加qq。

2、w.sDrinaframework・og/schema/cordext”xmlns:aoD二”httD:〃www・SDrinaframework・og/schema/aoLxmIns:tx=KhttD:〃www・SDringframework・org/schema/tx”xsi:schemaLocation=”httD://www・springframework.og/schema/beanshttD://www・SDrinqframework・og/schema/beans/SDrina・beans・2.5.xsdhttD://www・SDrinqframework・org/

3、schema/contexthttD:〃www・SDrinqframework・org/schema/context/spring・context・2・5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring・aop・2.5.xsdhttp:〃www・sprinqframework.org/schema/txhttp:”www.sprinqframework・orq/schema/tx/sprinq・tx・2・5・xscT>

4、entdataSource”class=Horg.apache.commons.dbcp.BasicDataSourceMdestroy-method=HcloseM>com.mysql.jdbc.Driver55

5、umaxWair>100000trueSELECTCOUNTS)FROMDUALv!・・===========================================数据源一(datal)===========================================—>

6、anid』dataSource"Tparent=”parentdataSource、jdbc:mysql://127.0.0.1:3306/data1?rewriteBatchedStatements=true&autoReconnec上true&useUnicode=true&characterEncoding二UTF-8v/value:>wzh

7、

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。