(七)整合spring cloud云服务架构 - common-service 项目构建过程

我们将对common-service整个项目进行剖析,将整个构建的流程给记录下来,让更多的关注者来参考学习。

首先在构建spring cloud的common-service之前,我们需要准备的技术:

Maven(项目构建)、Spring Boot、Spring Cloud、微服务概念、去中心化思想、分布式等,针对于common-service的顶级项目,这里我们主要使用Maven来构建,闲话少说,我们直接上代码是最直观的。

1. 创建一个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架构的搭建过程及如何运用于企业项目。 

你可能感兴趣的:((七)整合spring cloud云服务架构 - common-service 项目构建过程)