spring-cloud,spring-boot,spring-cloud-alibaba,seata等版本依赖问题,能解决很多bug

依赖问题,如果不解决,你可能都不知道怎么解决,请叫我雷锋,spring官网我没找到,但是再springcloudalibaba的github上找到了,如果在spring官网找到了,请留言给个地址,谢谢

<?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">
    <modelVersion>4.0.0</modelVersion>
    <modules>
        <module>lx-seata</module>
        <module>lx-gateway</module>
        <module>lx-sale</module>
    </modules>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.5.RELEASE</version>
    </parent>

    <groupId>com.lx</groupId>
    <artifactId>new-alibaba</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <name>new-alibaba</name>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <spring-cloud.version>Hoxton.SR3</spring-cloud.version>
        <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${spring-cloud-alibaba.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>


</project>

参考地址  版本说明 · alibaba/spring-cloud-alibaba Wiki (github.com)    非常非常非常重要

spring-cloud,spring-boot,spring-cloud-alibaba,seata等版本依赖问题,能解决很多bug

spring-cloud,spring-boot,spring-cloud-alibaba,seata等版本依赖问题,能解决很多bug

 

上一篇:【性能优化实战】源码解析之Seata项目中的分布式ID生成算法


下一篇:6、微服务系列-分布式事务Seata