seata of springcloudalibaba

I have found many blog posts and read the official website of seata. I don’t know if this one of mine can help you. I just share my experience of stepping on the pit.

I currently use this is available and uploaded to github. Address:     master branch

1. Seata github address   seata/seata: Seata is an easy-to-use, high-performance, open source distributed transaction solution. (

2. When I was not familiar with github, I searched for this release for a long time. I tested it with windows and downloaded the zip. linux download tar file

1. Pom There is no inheritance from the parent pom. There is a problem with inheritance. I haven't found the reason yet. Please give me some advice and download the source code on github. I can run it directly and integrate seata, but I don’t know if you will have problems with it. This is also a very confusing point. Many people on the blog are projects that can be run, and I can’t run it.

<?xml version="1.0" encoding="UTF-8"?><project xmlns=""         xmlns:xsi=""         xsi:schemaLocation="">    <parent>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-parent</artifactId>        <version>2.2.2.RELEASE</version>        <relativePath/> <!-- lookup parent from repository -->    </parent>     <modelVersion>4.0.0</modelVersion>     <artifactId>lx-seata-client-02</artifactId>     <name>lx-seata-client-02</name>    <dependencies>        <!-- 实现对 Spring MVC 的自动化配置 -->        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-web</artifactId>        </dependency>         <!-- 实现对数据库连接池的自动化配置 -->        <dependency>            <groupId>org.springframework.boot</groupId>            <artifactId>spring-boot-starter-jdbc</artifactId>        </dependency>        <dependency> <!-- 本示例,我们使用 MySQL -->            <groupId>mysql</groupId>            <artifactId>mysql-connector-java</artifactId>            <version>5.1.48</version>        </dependency>         <!-- 实现对 MyBatis 的自动化配置 -->        <dependency>            <groupId>org.mybatis.spring.boot</groupId>            <artifactId>mybatis-spring-boot-starter</artifactId>            <version>2.1.2</version>        </dependency>         <!-- 实现对 Seata 的自动化配置 -->        <dependency>            <groupId>io.seata</groupId>            <artifactId>seata-spring-boot-starter</artifactId>            <version>1.1.0</version>        </dependency>        <!-- 实现 Seata 对 HttpClient 的集成支持  -->        <dependency>            <groupId>io.seata</groupId>            <artifactId>seata-http</artifactId>            <version>1.1.0</version>        </dependency>         <dependency>            <groupId>com.baomidou</groupId>            <artifactId>mybatis-plus-boot-starter</artifactId>            <version>3.4.1</version>        </dependency>         <dependency>            <groupId>org.projectlombok</groupId>            <artifactId>lombok</artifactId>            <version>1.18.20</version>        </dependency>     </dependencies> </project>

2. yml configuration

spring:  application:    name: lx-seata-client-02  datasource:    driver-class-name: com.mysql.jdbc.Driver    url: jdbc:mysql://localhost:3306/seata?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8    username: root    password: 123456  cloud:    nacos:      discovery:        server-addr:  redis:    host:    port: 6379    password:server:  port: 9004 # Seata 配置项,对应 SeataProperties 类seata:  application-id: ${} # Seata 应用编号,默认为 ${}  tx-service-group: my_test_tx_group # Seata 事务组编号,用于 TC 集群名  # 服务配置项,对应 ServiceProperties 类  service:    # 虚拟组和分组的映射  my_test_tx_group    vgroup-mapping:      my_test_tx_group: default    # 分组和 Seata 服务的映射    grouplist:      default:    # Seata 注册中心配置项,对应 RegistryProperties 类    registry:      type: nacos # 注册中心类型,默认为 file      nacos:        cluster: default # 使用的 Seata 分组        serverAddr: # Nacos 服务地址

Then just run it directly,

I succeeded by referring to    github code source blog

1. Step on the pit iscrnetty.NettyClientChannelManager: no available service'null' found, please make sure registry config correct What I encountered is that the two groups in the screenshot below are inconsistent and cause registration failure. If you change it to the same, it will be ok. Said it was a version issue, I did not verify

2. Main error: java.lang.ClassNotFoundException: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator version problem,