Spring Cloud Cloud Service Architecture-Common-service Project Process Building

Source: Internet
Author: User
Tags cas aliyun

We will analyze the whole project of Common-service and record the whole construction process, so that more followers can refer to the study.

First, before building the common-service of Spring cloud, we need to prepare the technology:

MAVEN (project Building), Spring Boot, Spring Cloud, microservices concept, decentralized thinking, distributed, etc., for top-of-the-line projects in Common-service, where we mainly use Maven to build, gossip less, we directly on the code is the most intuitive.

1. Create a MAVEN top-level project where the Pom.xml file is configured as follows:

<?xml version= "1.0" encoding= "UTF-8"?> <project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi= "http ://www.w3.org/2001/XMLSchema-instance "xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelversion>4.0.0 </modelVersion> <parent> <groupId>org.springframework.cloud</groupId> <artif Actid>spring-cloud-starter-parent</artifactid> <version>Dalston.RELEASE</version> & Lt;relativepath/> </parent> <groupId>com.ml.honghu</groupId> <artifactid>part Icle-commonservice</artifactid> <version>0.0.1-SNAPSHOT</version> <packaging>pom</pac Kaging> <name>particle-commonservice</name> <description>particle-commonservice Project for Spring boot</description> <modules> <module>particle-commonservice-config</module&gt          ; <module>particle-commonservice-eureka</module> <module>particle-commonservice-mq</module&          Gt <module>particle-commonservice-cache</module> <module>particle-commonservice-sso</module&          Gt <module>particle-commonservice-apigateway</module> <module>particle-commonservice-zipkin</ Module> <module>particle-commonservice-admin</module> <module>particle-commonservic E-turbine</module> <module>particle-commonservice-combine</module> <module>parti cle-commonservice-sequence</module> </modules> <properties> &LT;PROJECT.BUILD.SOURC Eencoding>utf-8</project.build.sourceencoding> &LT;PROJECT.REPORTING.OUTPUTENCODING&GT;UTF-8&LT;/PROject.reporting.outputencoding> <java.version>1.8</java.version> <!--Framework Universal Package Edition This setting-<validator.version>5.3.4.Final</validator.version> <shiro.version>1.2.3< /shiro.version> <druid.version>1.0.26</druid.version> <mybatis-spring.version>1.2.2 </mybatis-spring.version> <shiro.version>1.2.3</shiro.version> <druid.version>1. 0.11</druid.version> <ehcache.version>2.6.9</ehcache.version> <ehcache-web.version& Gt;2.0.4</ehcache-web.version> <sitemesh.version>2.4.2</sitemesh.version> <activiti .version>5.15.1</activiti.version> <wink.version>1.4</wink.version> <sso.client. Version>3.4.1</sso.client.version>-<!--Universal Toolkit version set-<slf4j.version>1.7.7  </slf4j.version>        <commons-lang3.version>3.3.2</commons-lang3.version> <commons-io.version>2.4</common S-io.version> <commons-codec.version>1.9</commons-codec.version> &LT;COMMONS-FILEUPLOAD.V Ersion>1.3.1</commons-fileupload.version> <commons-beanutils.version>1.9.1</commons-beanutils .version> <fastjson.version>1.1.40</fastjson.version> <xstream.version>1.4.7</xs Tream.version> <guava.version>17.0</guava.version> &LT;DOZER.VERSION&GT;5.5.1&LT;/DOZER.V          Ersion> <email.version>1.4.7</email.version> <poi.version>3.9</poi.version> <cglib.version>3.2.5</cglib.version> <!--Aliyun--<aliyun-sdk- Oss.version>2.6.0</aliyun-sdk-oss.version> <aliyun-sdk-openservices-ons.version>1.2.7.final</ Aliyun-sdk-openservices-ons.Version> <com.ml.honghu.componet.version>0.0.1-SNAPSHOT</com.ml.honghu.componet.version> <spring-boot-admin.version>1.5.1</spring-boot-admin.version> <fastjson.version>1.2.35</                fastjson.version> </properties> <dependencyManagement> <dependencies> <!--Spring Cloud--<dependency> <groupid>org.springframework.cloud </groupId> <artifactId>spring-cloud-dependencies</artifactId> <vers Ion>dalston.release</version> <type>pom</type> <scope>import  </scope> </dependency> <dependency> <groupid                  >org.jasig.cas.client</groupId> <artifactId>cas-client-core</artifactId>                  <version>3.4.1</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactid>springfox-swagger2</art ifactid> <version>2.5.0</version> </dependency> <depend Ency> <groupId>de.codecentric</groupId> <artifactid>spring-boot-adm In-server</artifactid> <version>${spring-boot-admin.version}</version> &lt                  ;/dependency> <dependency> <groupId>de.codecentric</groupId> <artifactid>spring-boot-admin-server-ui</artifactid> &LT;VERSION&GT;${SPRING-BOOT-ADMIN.VERSION}&LT;/VERSION&G              T                  </dependency> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server-ui-hystrix</artifactId> <version>${sprin g-boot-admin.version}</version> </dependency> <dependency> &L T;groupid>de.codecentric</groupid> <artifactid>spring-boot-admin-server-ui-turbine</art              Ifactid> <version>${spring-boot-admin.version}</version> </dependency> <dependency> <groupId>de.codecentric</groupId> <artifa Ctid>spring-boot-admin-server-ui-login</artifactid> <version>${spring-boot-admin.version}& Lt;/version> </dependency> <dependency> <groupid>de.codecentric&lt                  ;/groupid> <artifactId>spring-boot-admin-server-ui-activiti</artifactId> <version>${spring-boot-admin.version}</version> </dependency> &LT;DEPENDENCY&G                  T                  <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.25</version> </dependency> <dependency> &L                  T;groupid>com.ml.honghu</groupid> <artifactId>component-base</artifactId> <version>${com.ml.honghu.componet.version}</version> </dependency> < Dependency> <groupId>com.ml.honghu</groupId> <artifactid>component- RediS</artifactid> <version>${com.ml.honghu.componet.version}</version> </d                  Ependency> <dependency> <groupId>com.ml.honghu</groupId> <artifactId>component-utils</artifactId> <version>${com.ml.honghu.componet.version}& lt;/version> </dependency> <dependency> <groupid>com.ml.ho Nghu</groupid> <artifactId>component-sequence-api</artifactId> <ver                   Sion>${com.ml.honghu.componet.version}</version> </dependency> <dependency> <groupId>com.ml.honghu</groupId> <artifactid>component-admin-ui-zipki N</artifactid> <version>${com.ml.honghu.componet.version}</version> </d           Ependency>   <dependency> <groupId>com.ml.honghu</groupId> <artifactid>com               Ponent-admin-ui-route</artifactid> <version>${com.ml.honghu.componet.version}</version> </dependency> <dependency> <groupid>com.ml.honghu</groupi D> <artifactId>component-zuul-label</artifactId> <version>${com.ml. honghu.componet.version}</version> </dependency> </dependencies> </depende   Ncymanagement> </project>

The current Pom.xml file introduces spring cloud related version configuration, generic tool version configuration, Honghu related component configuration (because other system service projects depend on related components, and component projects are created later)

From now on, I will be documenting the process and essence of the recent development of the spring cloud micro-service cloud architecture to help more friends who are interested in developing the Spring cloud framework to explore the process of building the spring cloud architecture and how to use it in enterprise projects.

Source source technical support for complete projects 1791743380

Spring Cloud Cloud Service Architecture-Common-service Project Process Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.