读写分离源码及其测试代码

上传者: 47626220 | 上传时间: 2021-05-24 14:03:53 | 文件大小: 65KB | 文件类型: ZIP
读写分离插件的源码,其中db-router-test项目是测试项目代码,先 mvn install datasource-router-starter项目后可运行测试;源码解析:https://blog.csdn.net/weixin_47626220/article/details/117090788

文件下载

资源详情

[{"title":"( 60 个子文件 65KB ) 读写分离源码及其测试代码","children":[{"title":"datasource-router-starter","children":[{"title":"pom.xml <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":null,"spread":false},{"title":"maven-status","children":[{"title":"maven-compiler-plugin","children":[{"title":"compile","children":[{"title":"default-compile","children":[{"title":"inputFiles.lst <span style='color:#111;'> 745B </span>","children":null,"spread":false},{"title":"createdFiles.lst <span style='color:#111;'> 357B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"testCompile","children":[{"title":"default-testCompile","children":[{"title":"inputFiles.lst <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"createdFiles.lst <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"datasource-router-starter-1.0-SNAPSHOT-sources.jar <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false},{"title":"generated-test-sources","children":[{"title":"test-annotations","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"META-INF","children":[{"title":"spring-configuration-metadata.json <span style='color:#111;'> 439B </span>","children":null,"spread":false},{"title":"spring.factories <span style='color:#111;'> 98B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"example","children":[{"title":"config","children":[{"title":"DbProperties.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"DataSourceConfig.class <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"ConfigProperties.class <span style='color:#111;'> 883B </span>","children":null,"spread":false}],"spread":true},{"title":"routing","children":[{"title":"RoutingDataSource.class <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"DbType.class <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"DbContextHolder.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"aop","children":[{"title":"DBRouterAop.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"annotation","children":[{"title":"ReadOnly.class <span style='color:#111;'> 404B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"maven-archiver","children":[{"title":"pom.properties <span style='color:#111;'> 113B </span>","children":null,"spread":false}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true},{"title":"datasource-router-starter-1.0-SNAPSHOT.jar <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"META-INF","children":[{"title":"spring.factories <span style='color:#111;'> 98B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"config","children":[{"title":"ConfigProperties.java <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"DbProperties.java <span style='color:#111;'> 873B </span>","children":null,"spread":false},{"title":"DataSourceConfig.java <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"routing","children":[{"title":"DbType.java <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"RoutingDataSource.java <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"DbContextHolder.java <span style='color:#111;'> 538B </span>","children":null,"spread":false}],"spread":true},{"title":"aop","children":[{"title":"DBRouterAop.java <span style='color:#111;'> 766B </span>","children":null,"spread":false}],"spread":true},{"title":"annotation","children":[{"title":"ReadOnly.java <span style='color:#111;'> 322B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"codeStyleConfig.xml <span style='color:#111;'> 153B </span>","children":null,"spread":false}],"spread":true},{"title":"uiDesigner.xml <span style='color:#111;'> 8.71KB </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":"jarRepositories.xml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 851B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 14.14KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"datasource-router-starter.iml <span style='color:#111;'> 81B </span>","children":null,"spread":false}],"spread":true},{"title":"db-router-test","children":[{"title":"pom.xml <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"application.yml <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"example","children":[{"title":"test","children":[{"title":"infrastructure","children":[{"title":"dao","children":[{"title":"IUserDao.class <span style='color:#111;'> 496B </span>","children":null,"spread":false}],"spread":true},{"title":"po","children":[{"title":"User.class <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"domain","children":[{"title":"ConvertUtils.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"DbRouterTestApplication.class <span style='color:#111;'> 916B </span>","children":null,"spread":false},{"title":"application","children":[{"title":"service","children":[{"title":"UserService.class <span style='color:#111;'> 375B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"interfaces","children":[{"title":"dto","children":[{"title":"UserInfo.class <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.class <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"mybatis","children":[{"title":"mapper","children":[{"title":"User_Mapper.xml <span style='color:#111;'> 814B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"db-router-test.iml <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"cn","children":[{"title":"bugstack","children":[{"title":"middleware","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"mybatis","children":[{"title":"mapper","children":[{"title":"User_Mapper.xml <span style='color:#111;'> 814B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"test","children":[{"title":"infrastructure","children":[{"title":"dao","children":[{"title":"IUserDao.java <span style='color:#111;'> 374B </span>","children":null,"spread":false}],"spread":false},{"title":"po","children":[{"title":"User.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"domain","children":[{"title":"ConvertUtils.java <span style='color:#111;'> 862B </span>","children":null,"spread":false}],"spread":false},{"title":"DbRouterTestApplication.java <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"application","children":[{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 675B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"interfaces","children":[{"title":"dto","children":[{"title":"UserInfo.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"UserController.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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