Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report