Spring Cloud Alibaba 入门学习

Spring Cloud Alibaba github文档地址:
https://github.com/alibaba/spring-cloud-alibaba/wiki

最关键要看的东西 各种版本依赖信息!!!!(不然后续就是痛苦面具)
https://github.com/alibaba/spring-cloud-alibaba/wiki/版本说明

推荐现在官方显示的版本(一般是最稳定的)

简单入门使用

创建一个springboot项目作为父工程 导入时我们就勾上lombok和web即可

版本修改为2.3.0

配置dependencyManagement
导入Springcloud以及springcloud-alibaba

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

            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Hoxton.SR3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2.2.1.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
posted @ 2021-09-05 17:56  一个经常掉线的人  阅读(148)  评论(0)    收藏  举报