Spring Cloud Alibaba学习笔记: 2、版本说明与统一依赖管理项目创建

文章目录

    • 版本使用列表
    • Spring Boot、Spring Cloud、Spring Cloud Alibaba三者间关系
    • 项目结构图
    • 创建依赖管理项目

版本使用列表

Spring Cloud Alibaba 项目都是基于 Spring Cloud,而 Spring Cloud 项目又是基于 Spring Boot 进行开发,并且都是使用 Maven 做项目管理工具,以下为我们使用的版本列表:

名称 版本
JAVA JDK 1.8.0_211
Spring Boot 2.1.6.RELEASE
Spring Boot Admin 2.1.5
Spring Cloud Greenwich.SR2
Spring Cloud Alibaba 0.9.0.RELEASE

Spring Boot、Spring Cloud、Spring Cloud Alibaba三者间关系

Spring Boot Spring Cloud Spring Cloud Alibaba
2.1.x Greenwich 0.9.x
2.0.x Finchley 0.2.x
1.5.x Edgware 0.1.x
1.5.x Dalston 0.1.x

参考:

项目结构图

Spring Cloud Alibaba学习笔记: 2、版本说明与统一依赖管理项目创建_第1张图片

创建依赖管理项目

创建一个 sca (Spring Cloud Alibaba 首字母缩写) 的项目, 以下为 pom.xml 依赖文件内容:



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.6.RELEASE
         
    

    cn.fxbin.learn
    sca
    1.0
    pom

    sca-build
    Spring Cloud Alibaba Learn Build Project


    
        
        1.8
        UTF-8
        UTF-8
        
        
        2.1.5
        Greenwich.SR2
        0.9.0.RELEASE
    


    

        
        
            org.springframework.boot
            spring-boot-starter-actuator
        

        
        
            org.projectlombok
            lombok
            true
        

        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        

    

    
        
            
            
                de.codecentric
                spring-boot-admin-dependencies
                ${spring-boot-admin.version}
                pom
                import
            

            
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            

            
            
                org.springframework.cloud
                spring-cloud-alibaba-dependencies
                ${spring-cloud-alibaba.version}
                pom
                import
            
        
    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        

    




end

如有疑问,请留言,感谢阅读

欢迎关注博主公众号:

你可能感兴趣的:(#,Spring,Cloud,Alibaba)