| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>sckw-common</artifactId>
- <groupId>com.sckw</groupId>
- <version>1.0.0</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sckw-common-seata</artifactId>
- <description>分布式事务</description>
- <properties>
- <maven.compiler.source>17</maven.compiler.source>
- <maven.compiler.target>17</maven.compiler.target>
- </properties>
- <dependencies>
- <!-- 注意一定要引入对版本,要引入spring-cloud版本seata,而不是springboot版本的seata-->
- <!-- 1.如果你引入的是seata-all,请不要使用@EnableAutoDataSourceProxy注解。-->
- <!-- 2.如果你引入的是seata-spring-boot-starter 请关闭自动代理。-->
- <!-- seata:enable-auto-data-source-proxy: false-->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
- <!-- 排除掉springcloud默认的seata版本,以免版本不一致出现问题-->
- <exclusions>
- <exclusion>
- <groupId>io.seata</groupId>
- <artifactId>seata-spring-boot-starter</artifactId>
- </exclusion>
- <exclusion>
- <groupId>io.seata</groupId>
- <artifactId>seata-all</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- 上面排除掉了springcloud默认seata版本,此处引入和seata-server版本对应的seata包-->
- <dependency>
- <groupId>io.seata</groupId>
- <artifactId>seata-spring-boot-starter</artifactId>
- </dependency>
- </dependencies>
- </project>
|