[{"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}]