整合Spring Cloud Alibaba

maven pom增加依赖
f90b8d8132ab3243169f752514e83e6e.png

<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>
    </dependencies>
</dependencyManagement>

整合Spring Cloud Alibaba

wiki版本说明
根据SpringCloud版本在dependencyManagement添加依赖
Greenwich版本时Pom依赖:

<dependencyManagement>
        <!--整合Spring cloud-->
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Greenwich.SR3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <!--整合spring cloud alibaba-->
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2.1.0.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>

    </dependencyManagement>

整合后使用对应组件依赖无需填写版本号,而是由dependencyManagement内的文件控制

标签: none

已有 8 条评论

  1. 不错不错,我喜欢看 www.jiwenlaw.com

  2. 《职场无间道》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/86627.html

  3. 你的文章内容非常专业,让人佩服。 http://www.55baobei.com/D5G1t3mKI1.html

  4. 《月吟》喜剧片高清在线免费观看:https://www.jgz518.com/xingkong/99606.html

  5. 《张大千敦煌传奇》国产剧高清在线免费观看:https://www.jgz518.com/xingkong/27778.html

  6. 哈哈哈,写的太好了https://www.lawjida.com/

  7. 文章深入浅出,既有深度思考,又不乏广度覆盖,令人叹为观止。

  8. ?技术类评语?

添加新评论