首页 开发技术 Java     /    SpringBoot+Atomikos分布式事务及多数据源动态切换,两种demo

SpringBoot+Atomikos分布式事务及多数据源动态切换,两种demo

上传者: weixin_37594331 | 上传时间:2022/9/3 10:07:04 | 文件大小:180KB | 文件类型:rar
SpringBoot+Atomikos分布式事务及多数据源动态切换,两种demo
SpringBoot+Atomikos分布式事务及多数据源动态切换,两种demo,两条数据源,是满足事务独一性的,看清楚是demo 本软件ID:9955273

文件下载

资源详情

[{"title":"(86个子文件180KB)SpringBoot+Atomikos分布式事务及多数据源动态切换,两种demo","children":[{"title":"SpringBoot+Atomikos分布式事务及动态数据源","children":[{"title":"通过BaseDao切换数据源","children":[{"title":"Springboot-Atomikos2","children":[{"title":"pom.xml <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":".springBeans <span style='color:#111;'>467B</span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"ApplicationTests.class <span style='color:#111;'>602B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"META-INF","children":[{"title":"maven","children":[{"title":"com.jhx","children":[{"title":"demo2","children":[{"title":"pom.xml <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":"pom.properties <span style='color:#111;'>243B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"MANIFEST.MF <span style='color:#111;'>323B</span>","children":null,"spread":false}],"spread":true},{"title":"application.properties <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"dao","children":[{"title":"UserDao.class <span style='color:#111;'>1.12KB</span>","children":null,"spread":false},{"title":"BaseDao.class <span style='color:#111;'>1.27KB</span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"BeanContext.class <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"DataSourceHolder.class <span style='color:#111;'>1.79KB</span>","children":null,"spread":false},{"title":"DataSourceConfig.class <span style='color:#111;'>5.43KB</span>","children":null,"spread":false},{"title":"DynamicDataSource.class <span style='color:#111;'>2.29KB</span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.class <span style='color:#111;'>1.24KB</span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'>920B</span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"User.class <span style='color:#111;'>3.53KB</span>","children":null,"spread":false}],"spread":false},{"title":"Application.class <span style='color:#111;'>684B</span>","children":null,"spread":false},{"title":"util","children":[{"title":"PropertiesUtil.class <span style='color:#111;'>1.67KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"mvnw <span style='color:#111;'>6.32KB</span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'>97B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'>145B</span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'>214B</span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>243B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"ApplicationTests.java <span style='color:#111;'>323B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"templates","children":null,"spread":false},{"title":"static","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"dao","children":[{"title":"BaseDao.java <span style='color:#111;'>1.37KB</span>","children":null,"spread":false},{"title":"UserDao.java <span style='color:#111;'>504B</span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"DataSourceConfig.java <span style='color:#111;'>4.82KB</span>","children":null,"spread":false},{"title":"BeanContext.java <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"DataSourceHolder.java <span style='color:#111;'>1.52KB</span>","children":null,"spread":false},{"title":"DynamicDataSource.java <span style='color:#111;'>1.81KB</span>","children":null,"spread":false}],"spread":false},{"title":"Application.java <span style='color:#111;'>292B</span>","children":null,"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'>796B</span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'>747B</span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"User.java <span style='color:#111;'>408B</span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"PropertiesUtil.java <span style='color:#111;'>1.06KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>1.11KB</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"maven-wrapper.jar <span style='color:#111;'>46.49KB</span>","children":null,"spread":false},{"title":"maven-wrapper.properties <span style='color:#111;'>110B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"mvnw.cmd <span style='color:#111;'>4.88KB</span>","children":null,"spread":false},{"title":"tmlog27.log <span style='color:#111;'>1.91KB</span>","children":null,"spread":false},{"title":"192.168.188.46.tm27.epoch <span style='color:#111;'>8B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"通过DataSourceHolder切换数据源","children":[{"title":"Springboot-Atomikos1","children":[{"title":"pom.xml <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":".springBeans <span style='color:#111;'>467B</span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"ApplicationTests.class <span style='color:#111;'>602B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"META-INF","children":[{"title":"maven","children":[{"title":"com.jhx","children":[{"title":"demo2","children":[{"title":"pom.xml <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":"pom.properties <span style='color:#111;'>243B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"MANIFEST.MF <span style='color:#111;'>323B</span>","children":null,"spread":false}],"spread":true},{"title":"application.properties <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"dao","children":[{"title":"UserDao.class <span style='color:#111;'>1.30KB</span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"BeanContext.class <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"DataSourceHolder.class <span style='color:#111;'>2.77KB</span>","children":null,"spread":false},{"title":"DataSourceConfig.class <span style='color:#111;'>5.66KB</span>","children":null,"spread":false},{"title":"DynamicDataSource.class <span style='color:#111;'>2.29KB</span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.class <span style='color:#111;'>1.24KB</span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'>1.09KB</span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"User.class <span style='color:#111;'>3.53KB</span>","children":null,"spread":false}],"spread":false},{"title":"Application.class <span style='color:#111;'>684B</span>","children":null,"spread":false},{"title":"util","children":[{"title":"PropertiesUtil.class <span style='color:#111;'>1.67KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"mvnw <span style='color:#111;'>6.32KB</span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'>97B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'>145B</span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'>214B</span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>243B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"ApplicationTests.java <span style='color:#111;'>323B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'>788B</span>","children":null,"spread":false},{"title":"templates","children":null,"spread":false},{"title":"static","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"jhx","children":[{"title":"demo","children":[{"title":"dao","children":[{"title":"UserDao.java <span style='color:#111;'>777B</span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"DataSourceConfig.java <span style='color:#111;'>5.05KB</span>","children":null,"spread":false},{"title":"BeanContext.java <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"DataSourceHolder.java <span style='color:#111;'>2.44KB</span>","children":null,"spread":false},{"title":"DynamicDataSource.java <span style='color:#111;'>1.81KB</span>","children":null,"spread":false}],"spread":false},{"title":"Application.java <span style='color:#111;'>292B</span>","children":null,"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'>796B</span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'>872B</span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"User.java <span style='color:#111;'>408B</span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"PropertiesUtil.java <span style='color:#111;'>1.06KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>1.11KB</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"maven-wrapper.jar <span style='color:#111;'>46.49KB</span>","children":null,"spread":false},{"title":"maven-wrapper.properties <span style='color:#111;'>110B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"mvnw.cmd <span style='color:#111;'>4.88KB</span>","children":null,"spread":false},{"title":"tmlog27.log <span style='color:#111;'>1.91KB</span>","children":null,"spread":false},{"title":"192.168.188.46.tm27.epoch <span style='color:#111;'>8B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 四六之间:
    博主,这2个demo代码听类似的,你觉得哪个更好一点呀2020-10-29
  • 温州-兔兔-Java:
    也不是我想要的2020-07-22
  • xuningpro:
    看样子不好用,哈哈2019-07-03
  • Y125348369:
    积分很贵,但是并非我们所要。。2018-10-28
  • jay763190097:
    也不是我想要的2018-08-10

免责申明

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