Spring Coudクラウドサービス-HongHuアーキテクチャcommon-serviceプロジェクト構築過程

8224 ワード

前のページでは、「spring cloudクラウドサービスアーキテクチャ-HongHuクラウドアーキテクチャcommon-serviceコード構造分析」を紹介しました.今回は、common-serviceプロジェクト全体を分析し、構築の流れを記録し、より多くの注目者に学習を参考にさせます.
まず、spring cloudのcomon-serviceを構築する前に、準備する技術が必要です.
Maven(プロジェクト構築)、Spring Boot、Spring Cloud、マイクロサービスの概念、中心化思想、分散など、common-serviceのトッププロジェクトに対して、ここでは主にMavenを使って構築しています.
  • は、Mavenの上位項目を作成します.ここで、pom.xmlファイルの構成は以下の通りです.
  • 
    
        4.0.0
    
            org.springframework.cloud
            spring-cloud-starter-parent
            Dalston.RELEASE
            
        
     
        com.ml.honghu
        particle-commonservice
        0.0.1-SNAPSHOT
        pom
     
        particle-commonservice
        particle-commonservice project for Spring Boot
     
        
            particle-commonservice-config
            particle-commonservice-eureka
            particle-commonservice-mq
            particle-commonservice-cache
            particle-commonservice-sso
            particle-commonservice-apigateway
            particle-commonservice-zipkin
            particle-commonservice-admin
            particle-commonservice-turbine
            particle-commonservice-combine
            particle-commonservice-sequence
        
     
        
            UTF-8
            UTF-8
            1.8
            
            
            5.3.4.Final
            1.2.3
            1.0.26
            1.2.2
            1.2.3
            1.0.11
            2.6.9
            2.0.4
            2.4.2
            5.15.1
            1.4
            3.4.1 -->
     
            
            1.7.7
            3.3.2
            2.4
            1.9
            1.3.1
            1.9.1
            1.1.40
            1.4.7
            17.0
            5.5.1
            1.4.7
            3.9
            3.2.5
            
            
            2.6.0
            1.2.7.Final
            0.0.1-SNAPSHOT
            1.5.1
            1.2.35
        
     
        
            
     
                
                
                    org.springframework.cloud
                    spring-cloud-dependencies
                    Dalston.RELEASE
                    pom
                    import
                
                
                
                    org.jasig.cas.client
                    cas-client-core
                    3.4.1
                
                
                
                    io.springfox
                    springfox-swagger2
                    2.5.0
                
                
                    de.codecentric
                    spring-boot-admin-server
                    ${spring-boot-admin.version}
                
                
                    de.codecentric
                    spring-boot-admin-server-ui
                    ${spring-boot-admin.version}
                
                
                    de.codecentric
                    spring-boot-admin-server-ui-hystrix
                    ${spring-boot-admin.version}
                
                
                    de.codecentric
                    spring-boot-admin-server-ui-turbine
                    ${spring-boot-admin.version}
                
                
                    de.codecentric
                    spring-boot-admin-server-ui-login
                    ${spring-boot-admin.version}
                
                
                    de.codecentric
                    spring-boot-admin-server-ui-activiti
                    ${spring-boot-admin.version}
                
                
                    org.slf4j
                    slf4j-api
                    1.7.25
                
                
                    com.ml.honghu
                    component-base
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-redis
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-utils
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-sequence-api
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-admin-ui-zipkin
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-admin-ui-route
                    ${com.ml.honghu.componet.version}
                
                
                    com.ml.honghu
                    component-zuul-label
                    ${com.ml.honghu.componet.version}
                
            
        
    
    
    
    現在のpom.xmlファイルはspring cloud関連バージョン構成を導入しています.汎用ツールバージョン構成、honghu関連コンポーネント構成(他のシステムサービス項目は関連部品に依存していますので、コンポーネント項目も後から作成します.)
    これからは、最近開発されたspring cloudマイクロサービスクラウドの構築過程とエッセンスを記録して、spring cloudフレームを研究開発する興味のある友達を助けます.みんなでspring cloudアーキテクチャの構築過程と企業項目を検討します.完全なプロジェクトのソースコードの技術サポート1791743380