Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature:upgrade samples seata dependency to 2.0 #646

Merged
merged 16 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ Thumbs.db

*/.idea/
*/.mvn/
*/**/.mvn/
*/target/
91 changes: 34 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,34 @@
<img src="https://github.com/seata/seata-samples/blob/master/doc/img/seata.png" height="100" width="426">

# Seata Samples

Samples for Seata. This project contains several sub-projects, each of which is an example of integration with other
projects.

[![Build Status](https://travis-ci.org/seata/seata-samples.svg?branch=master)](https://travis-ci.org/seata/seata-samples)
![license](https://img.shields.io/github/license/seata/seata-samples.svg)

> Friendly note: because the project depends on too much, all Maven modules are commented out by default.
>
> You can modify [`pom.xml`](https://github.com/seata/seata-samples/blob/master/pom.xml).

## Related repository

* [Seata](https://github.com/seata/seata) - The Seata core project

## Sub-projects

* [springcloud-seata-sharding-jdbc-mybatis-plus-samples](https://github.com/wilbur-ltf/seata-samples/tree/master/springcloud-seata-sharding-jdbc-mybatis-plus-samples)Easy to understand, high availability,Integration example of [Spring Cloud](https://github.com/spring-cloud),[Seata](https://github.com/seata/seata),[ShardingJdbc](https://github.com/apache/shardingsphere),[MyBatisPlus](https://github.com/baomidou/mybatis-plus).
* [spring-cloud-alibaba-samples](https://github.com/seata/seata-samples/tree/master/spring-cloud-alibaba-samples) -
Spring Cloud Alibaba + Nacos + Dubbo + OpenFeign + Sentinel + Seata
* [dubbo](https://github.com/seata/seata-samples/tree/master/dubbo) - Integration example
of [Seata](https://github.com/seata/seata) and [Apache Dubbo](https://github.com/apache/dubbo)
* [springboot](https://github.com/seata/seata-samples/tree/master/springboot) - Integration example
of [Seata](https://github.com/seata/seata) and [Spring Boot](https://github.com/spring-projects/spring-boot/)
* [nacos](https://github.com/seata/seata-samples/tree/master/nacos) - Integration example
of [Seata](https://github.com/alibaba/fescar)、 [Apache Dubbo](https://github.com/apache/dubbo)
and [Alibaba Nacos](https://github.com/alibaba/nacos/)
* [springboot-dubbo-seata](https://github.com/seata/seata-samples/tree/master/springboot-dubbo-seata) - Integration
example of [Seata](https://github.com/seata/seata)、 [Apache Dubbo](https://github.com/apache/dubbo)
and [Spring Boot](https://github.com/spring-projects/spring-boot/)
* [nutzboot-dubbo-seata](https://github.com/seata/seata-samples/tree/master/nutzboot-dubbo-fescar) - Integration example
of [Seata](https://github.com/seata/seata)、 [Apache Dubbo](https://github.com/apache/dubbo)
and [NutzBoot](https://github.com/nutzam/nutzboot/)
* [springcloud-jpa-seata](https://github.com/seata/seata-samples/tree/master/springcloud-jpa-seata) - Integration
example of [Seata](https://github.com/Seata) and [Spring Cloud](https://github.com/spring-cloud) and JPA
* [spring-boot-multiple-datasource](./multiple-datasource) - Integration example of [Seata](https://github.com/Seata)
and [Spring Boot](https://github.com/spring-projects/spring-boot/) with multiple datasource and MyBatis
* [springboot-mybatis](https://github.com/seata/seata-samples/tree/master/springboot-mybatis) - Integration example
of [Seata](https://github.com/Seata) and [Spring Boot](https://github.com/spring-projects/spring-boot/)
and [Mybatis](https://github.com/mybatis/mybatis-3)
* [api](https://github.com/seata/seata-samples/tree/master/api) - Non-Spring environment uses api to build Seata
distributed transactions
* [spring-boot-multiple-datasource-mybatis-plus](./multiple-datasource-mybatis-plus) - Integration example
of [Seata](https://github.com/Seata) and [Spring Boot](https://github.com/spring-projects/spring-boot/) with multiple
datasource and [MyBatisPlus](https://github.com/baomidou/mybatis-plus)
* [springcloud-nacos-seata](https://github.com/seata/seata-samples/tree/master/springcloud-nacos-seata) - Integration
example of [Seata](https://github.com/Seata) and [Spring Cloud](https://github.com/spring-cloud)
and [Alibaba Nacos](https://github.com/alibaba/nacos/)
* [saga](https://github.com/seata/seata-samples/tree/master/saga) - Saga mode distributed transaction demo projects
* [dubbo-multiple-datasource-mybatis-plus](https://github.com/seata/seata-samples/tree/master/dubbo-multiple-datasource-mybatis-plus) Integration example of [Seata](https://github.com/Seata) and [Spring Boot](https://github.com/spring-projects/spring-boot/) [Apache Dubbo](https://github.com/apache/dubbo) with [dynamic](https://github.com/baomidou/dynamic-datasource-spring-boot-starter) multiple datasource and [MyBatisPlus](https://github.com/baomidou/mybatis-plus) and [Alibaba Nacos](https://github.com/alibaba/nacos/)

## Guide

- [Quick integration with Spring Cloud](./doc/quick-integration-with-spring-cloud.md)
# samples code specification

## Directory Structure

The first and second levels are more of a directory

Top level: seata-samples

Second layer: at-sample, tcc-sample, saga-sample, xa-sample

Third floor, The third layer is the specific sample and the naming convention is as follows:

## naming

naming with framework: spring-nacos-seata, springboot-naocs-zk-seata ...

## dependency

pom: The dependencies of each sample should be independent and should not depend on the dependencies of the parent pom of seata samples.



# samples transaction model
https://seata.apache.org/docs/user/quickstart/

## start sequence

1、account

2、storage

3、order

4、business
35 changes: 0 additions & 35 deletions api/pom.xml

This file was deleted.

101 changes: 0 additions & 101 deletions api/src/main/java/io/seata/samples/api/Bussiness.java

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions api/src/main/java/io/seata/samples/api/service/AccountService.java

This file was deleted.

This file was deleted.

Loading
Loading