Spring+Mybatis+Atomikos实现JAVA初始化并控制多个数据源+分布式事务

上传者: llzhaoyun | 上传时间: 2018-06-26 20:37:57 | 文件大小: 56KB | 文件类型: rar
Spring+Mybatis+Atomikos实现JAVA初始化并控制多个数据源+分布式事务的一个DEMO,内涵源代码,以及一篇关于该内容的博客

文件下载

资源详情

[{"title":"( 68 个子文件 56KB ) Spring+Mybatis+Atomikos实现JAVA初始化并控制多个数据源+分布式事务","children":[{"title":"mult-table-demo","children":[{"title":".project <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"eay","children":[{"title":"test","children":[{"title":"MultDbTest.java <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"webapp","children":[{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":null,"spread":false}],"spread":true},{"title":"resources","children":[{"title":"applicationContext.xml <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"jta.properties <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"otherdb","children":[{"title":"OtherDbStudentMapper.xml <span style='color:#111;'> 610B </span>","children":null,"spread":false}],"spread":true},{"title":"mydb","children":[{"title":"MyDbUserMapper.xml <span style='color:#111;'> 586B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring-mybatis.xml <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"log4j.properties <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"eya","children":[{"title":"mt","children":[{"title":"otherdb","children":[{"title":"service","children":[{"title":"OtherDbStudentService.java <span style='color:#111;'> 865B </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"OtherDbStudent.java <span style='color:#111;'> 768B </span>","children":null,"spread":false}],"spread":true},{"title":"mapper","children":[{"title":"OtherDbStudentMapper.java <span style='color:#111;'> 390B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"utils","children":[{"title":"RandomUtil.java <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"datasource","children":[{"title":"AbstractDynamicDataSource.java <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"DBContextHolder.java <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"AtomikosDynamicDataSource.java <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"mydb","children":[{"title":"service","children":[{"title":"MyDbUserService.java <span style='color:#111;'> 814B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"MyDbUser.java <span style='color:#111;'> 751B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"MyDbUserMapper.java <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"m2e-wtp","children":[{"title":"web-resources","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 103B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.eya","children":[{"title":"mult-table-demo","children":[{"title":"pom.properties <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"applicationContext.xml <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"jta.properties <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"otherdb","children":[{"title":"OtherDbStudentMapper.xml <span style='color:#111;'> 610B </span>","children":null,"spread":false}],"spread":true},{"title":"mydb","children":[{"title":"MyDbUserMapper.xml <span style='color:#111;'> 586B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring-mybatis.xml <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"eya","children":[{"title":"mt","children":[{"title":"otherdb","children":[{"title":"service","children":[{"title":"OtherDbStudentService.class <span style='color:#111;'> 973B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"OtherDbStudent.class <span style='color:#111;'> 743B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"OtherDbStudentMapper.class <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"utils","children":[{"title":"RandomUtil.class <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"datasource","children":[{"title":"DBContextHolder.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"AtomikosDynamicDataSource.class <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"AbstractDynamicDataSource.class <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"mydb","children":[{"title":"service","children":[{"title":"MyDbUserService.class <span style='color:#111;'> 916B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"MyDbUser.class <span style='color:#111;'> 719B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"MyDbUserMapper.class <span style='color:#111;'> 248B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"log4j.properties <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"test-classes","children":[{"title":"applicationContext.xml <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"jta.properties <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"otherdb","children":[{"title":"OtherDbStudentMapper.xml <span style='color:#111;'> 610B </span>","children":null,"spread":false}],"spread":true},{"title":"mydb","children":[{"title":"MyDbUserMapper.xml <span style='color:#111;'> 586B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring-mybatis.xml <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"eay","children":[{"title":"test","children":[{"title":"MultDbTest.class <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"eya","children":[{"title":"mt","children":[{"title":"otherdb","children":[{"title":"service","children":[{"title":"OtherDbStudentService.class <span style='color:#111;'> 973B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"OtherDbStudent.class <span style='color:#111;'> 743B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"OtherDbStudentMapper.class <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"utils","children":[{"title":"RandomUtil.class <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"datasource","children":[{"title":"DBContextHolder.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"AtomikosDynamicDataSource.class <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"AbstractDynamicDataSource.class <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"mydb","children":[{"title":"service","children":[{"title":"MyDbUserService.class <span style='color:#111;'> 916B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"MyDbUser.class <span style='color:#111;'> 719B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"MyDbUserMapper.class <span style='color:#111;'> 248B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"log4j.properties <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.validation.prefs <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 575B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"multDb-init.sql <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"说明.txt <span style='color:#111;'> 900B </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • Monkey_D_Jie :
    非常感谢!!!!
    2019-03-05
  • idea_yuye :
    不错的资源!!!!!!
    2018-06-26
  • liuyunfeng2010 :
    没能解决我的问题,不过感谢楼主分享
    2018-03-02
  • qq_26288099 :
    不错。。。。。
    2018-02-27
  • zhengvince :
    没问题,我下载测试了,也搞了一会儿,必须修改数据库链接的密码,还需要maven clean 一下
    2018-02-09
  • 逸辰杳 :
    有问题。。。。。
    2017-10-25

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明