微服务 Spring Cloud Alibaba 项目搭建(二、父工程创建)

一、File - New - Project

二、选择maven -选择 jdk- Next

三、修改Name - 修改GroupId - Finish

四、删除文件下src文件夹

五、修改父工程pom.xml文件


    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.14.RELEASE
        
    

    
    
    
        1.8
        UTF-8
        UTF-8
        Greenwich.SR5
        2.1.2.RELEASE
    
    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            
            
                com.alibaba.cloud
                spring-cloud-alibaba-dependencies
                ${spring-cloud-alibaba.version}
                pom
                import
            
        
    
    
        
        
            org.projectlombok
            lombok
            1.18.4
            provided
        
        
        
            org.springframework.boot
            spring-boot-starter-logging
        
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    
    
        
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    8
                    8
                    utf-8
                
            
            
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    

完整pom.xml展示



    4.0.0

    com.bi.cloud
    bi-cloud
    1.0-SNAPSHOT

    
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.14.RELEASE
        
    

    
    
    
        1.8
        UTF-8
        UTF-8
        Greenwich.SR5
        2.1.2.RELEASE
    
    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version}
                pom
                import
            
            
                com.alibaba.cloud
                spring-cloud-alibaba-dependencies
                ${spring-cloud-alibaba.version}
                pom
                import
            
        
    
    
        
        
            org.projectlombok
            lombok
            1.18.4
            provided
        
        
        
            org.springframework.boot
            spring-boot-starter-logging
        
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    
    
        
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    8
                    8
                    utf-8
                
            
            
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    

截止到现在父工程已经创建完毕

第三章 common通用子模块创建 https://www.jianshu.com/p/d7c7f9c78ebe

你可能感兴趣的:(微服务 Spring Cloud Alibaba 项目搭建(二、父工程创建))