Get the App
SLTechnology News&Howtos  ›  Development  › 

How to understand the process of building a parent project in SpringCloud

Shulou Source: shulou.com Published: 2022-06-03 07:55:23 11月13日 Update

This article mainly explains "how to understand the process of building a parent project in SpringCloud". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to understand the process of building a parent project in SpringCloud".

Catalogue

SpringCloud and SpringBoot version selection

More detailed version selection

Related technology selection

Create a project

Create a parent project

New maven project

Configure pom files for the parent project

SpringCloud is an one-stop solution of distributed micro-service architecture, a collection of more than ten kinds of micro-service architecture landing technology, commonly known as micro-service family bucket.

SpringCloud and SpringBoot version selection

After 2019, it is officially recommended to use a version after 2.0.

Official website address

You can see the latest version and the corresponding springboot version at the top of the official website.

You can see the officially recommended version of springcloud corresponding to springboot on the official website.

More detailed version selection

Version info

You can see the officially recommended version selection.

The following versions are currently selected

Related technology selection

Create a project

Iron rules: convention > configuration > coding

Create a parent project

New Project

New maven project

Character coding

Set up in setting

Make the comments effective

Select the java compiled version as java8

Configure pom files for the parent project

Specify the packing method as pom

Delete the self-contained src folder

Replace parts of the pom.xml file

UTF-8 1.8 1.8 4.12 1.2.17 1.16.18 5.1.47 1.1.16 1.3.0 org.apache.maven.plugins maven-project-info-reports-plugin 3.0.0 org.springframework.boot spring-boot-dependencies 2.2 .2.RELEASE pom import org.springframework.cloud spring-cloud-dependencies Hoxton.SR1 pom import com.alibaba.cloud spring-cloud-alibaba-dependencies 2.1.0.RELEASE pom import mysql mysql-connector-java ${mysql.version} runtime com .Alibaba druid ${druid.version} org.mybatis.spring.boot mybatis-spring-boot-starter ${mybatis.spring.boot.version} junit junit ${junit.version} log4j log4j ${log4j.version} org.springframework.boot spring-boot-maven-plugin true true

The replacement part is as follows

To prevent packaging from getting stuck due to test errors, you need test in the skip maven lifecycle

The difference between dependencyManagement and dependencies

DependencyManagement is usually declared in the parent project and is used to declare dependent version and scope without actually introducing the package

Dependencies usually declares in the child project that the package will actually be introduced. If the package declared by the parent project is introduced, the specified version is no longer required for declaration.

Thank you for your reading, the above is the content of "how to understand the process of building a parent project in SpringCloud". After the study of this article, I believe you have a deeper understanding of how to understand the process of building a parent project in SpringCloud. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Project version selection process document content official Technology Learning Service configuration actual Architecture Code part recommendation selection Family cycle address Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn MariaDB OPPO Reno Shulou Tech Info