{"id":22900194,"url":"https://github.com/srchen1987/springcloud-distributed-transaction","last_synced_at":"2025-04-15T04:17:09.078Z","repository":{"id":108179212,"uuid":"475317220","full_name":"srchen1987/springcloud-distributed-transaction","owner":"srchen1987","description":"基于springcloud实现的分布式事务框架(3年前提交的那版删除了,因为涉及了某公司的隐私)","archived":false,"fork":false,"pushed_at":"2025-01-09T09:21:33.000Z","size":192,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T04:17:03.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srchen1987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T06:53:31.000Z","updated_at":"2024-12-16T16:22:24.000Z","dependencies_parsed_at":"2024-02-27T07:54:54.258Z","dependency_job_id":"072a7545-e590-4e07-b63b-493aaed7cc67","html_url":"https://github.com/srchen1987/springcloud-distributed-transaction","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fspringcloud-distributed-transaction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fspringcloud-distributed-transaction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fspringcloud-distributed-transaction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srchen1987%2Fspringcloud-distributed-transaction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srchen1987","download_url":"https://codeload.github.com/srchen1987/springcloud-distributed-transaction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003972,"owners_count":21196793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T01:18:20.736Z","updated_at":"2025-04-15T04:17:09.061Z","avatar_url":"https://github.com/srchen1987.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring_clould分布式事务框架-v0.1\n## 项目介绍\n基于spring cloud 研发的分布式事务架构，用来解决多数据库下数据不一致的问题。\n\n注意:springboot 1.x已不再支持,公司内部的框架还保留在gitlab中,即将升级成springboot.2.7.10,无论怎么升级springboot与springcloud都避免不了CVE漏洞王的称号.\n\n别问为什么直接看证据:\n```\nSpring Boot Starter Parent » 2.7.5\nParent pom providing dependency and plugin management for applications built with Maven\n\nLicense\tApache 2.0\nTags\tspringstarter\nHomePage\thttps://spring.io/projects/spring-boot\nDate\tOct 20, 2022\nFiles\tpom (8 KB)  View All\nRepositories\tCentral\nRanking\t#11622 in MvnRepository (See Top Artifacts)\nUsed By\t31 artifacts\nVulnerabilities\tVulnerabilities from dependencies:\nCVE-2023-28867\nCVE-2023-25194\nCVE-2023-1370\nCVE-2022-45868\nCVE-2022-4492\nCVE-2022-41946\nCVE-2022-41854\nCVE-2022-41853\nCVE-2022-38752\nCVE-2022-38751\nCVE-2022-38750\nCVE-2022-38749\nCVE-2022-35278\nCVE-2022-25857\nCVE-2022-1471\n```\n官方最新版3.x也是有很多漏洞,所以在线上的项目技术选型还是要谨慎。\n## 项目结构\n ### 架构源码\n dawdler-distributed-trasaction 分布式事务核心架构源码  \n dawdler-distributed-compensator 补偿处理架构源码  \n dawdler-distributed-transaction-api 分布式事务api\n\n### 使用实例\n\n dt_demo_order 订单模块(含下单页面)  \n dt_demo_user 用户模块  \n dt_demo-product 产品模块  \n dt_demo_compensator 补偿器模块    \n eureka-server eureka服务器  \n test.sql  需要导入到mysql中的数据库脚本 会生成3个库  \n \n## 使用说明\n1、通过maven安装dawdler-distributed-trasaction 和 dawdler-distributed-compensator  \n 2、准备activemq或artemis，也可以用其他mq  \n 3、准备redis (架构中可以扩展 mysql，本地文件等其他存储方式)用于存储发起者的记录用于做极端情况下的补偿  \n 4、导入test.sql到mysql  \n 5、更改项目中的mysql配置及redis，mq等配置  \n 6、启动  eureka-server， dt_demo-product，dt_demo_user ，dt_demo_order ，dt_demo_compensator 。(先启动eureka 其他顺序无要求)  \n 7、访问dt_demo_order 的index.html 测试  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fspringcloud-distributed-transaction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrchen1987%2Fspringcloud-distributed-transaction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrchen1987%2Fspringcloud-distributed-transaction/lists"}