SpringBoot+JPA+JTA(可选)+JdbcTemplate多数据源配置源码

上传者: kyq_1024yahoocn | 上传时间: 2021-08-24 09:15:55 | 文件大小: 45KB | 文件类型: ZIP
本资源包含了两个子项目,分别进行了springboot+jpa+jdbcTemplate的多数据源独立事务配置和jta分布式事务配置,并针对不同的情况编写了事务配置测试接口,还演示了JPA的domain一对多自动生成数据库表且不生成数据库外键的配置。

文件下载

资源详情

[{"title":"( 38 个子文件 45KB ) SpringBoot+JPA+JTA(可选)+JdbcTemplate多数据源配置源码","children":[{"title":"SpringBootMultiDataSource-main","children":[{"title":"pom.xml <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"nonjta-jpa","children":[{"title":"pom.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"application-nonjta.yml <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kyq","children":[{"title":"multids","children":[{"title":"config","children":[{"title":"SlaveDataSourceConfig.java <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"MainDataSourceConfig.java <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"MultiDsApplication.java <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"modules","children":[{"title":"index","children":[{"title":"controller","children":[{"title":"IndexController.java <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"MultiDataSourceTestService.java <span style='color:#111;'> 990B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"MultiDataSourceTestServiceImpl.java <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"slave","children":[{"title":"dict","children":[{"title":"repository","children":[{"title":"DictRepository.java <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":false},{"title":"domain","children":[{"title":"BaseDict.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"DictService.java <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"DictServiceImpl.java <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"user","children":[{"title":"repository","children":[{"title":"UserRepository.java <span style='color:#111;'> 454B </span>","children":null,"spread":false}],"spread":false},{"title":"domain","children":[{"title":"BaseUser.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"jta-jpa","children":[{"title":"pom.xml <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application-jta.yml <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"application.yml <span style='color:#111;'> 38B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kyq","children":[{"title":"multids","children":[{"title":"config","children":[{"title":"JtaTransactionManagerConfig.java <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"SlaveDataSourceConfig.java <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"MainDataSourceConfig.java <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"MultiDsApplication.java <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"modules","children":[{"title":"index","children":[{"title":"controller","children":[{"title":"IndexController.java <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"MultiDataSourceTestService.java <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"MultiDataSourceTestServiceImpl.java <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"slave","children":[{"title":"dict","children":[{"title":"repository","children":[{"title":"DictRepository.java <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":false},{"title":"domain","children":[{"title":"BaseDict.java <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"DictService.java <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"DictServiceImpl.java <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"user","children":[{"title":"repository","children":[{"title":"UserRepository.java <span style='color:#111;'> 454B </span>","children":null,"spread":false}],"spread":false},{"title":"domain","children":[{"title":"BaseUser.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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