Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the springboot scene launcher

Shulou Source: shulou.com Published: 2022-06-03 11:01:08 10月03日 Update

This article will explain in detail how to use the springboot scene launcher for you. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Why doesn't springboot need us to configure something so tedious?

Let's look at pom.xml directly.

4.0.0 com.gong myspringboot 1.0-SNAPSHOT org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-maven-plugin

First of all, spring-boot-starter-parent,spring-boot-start is the scene launcher. This is the parent project of all projects. Let's click the ctrl+ mouse button to enter it:

The beginning of the new file:

Org.springframework.boot spring-boot-dependencies 1.5.9.RELEASE.. /.. / spring-boot-dependencies

Its parent project is spring-boot-dependencies, which is used to manage the version number of dependent packages. In other words, spring-boot-start-parent is the version arbitration center.

Let's take a look at spring-boot-starter-web, and let's see what's in it:

4.0.0 org.springframework.boot spring-boot-starters 1.5.9.RELEASE spring-boot-starter-web Spring Boot Web Starter Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container http://projects.spring.io/spring-boot/ Pivotal Software, Inc. Http://www.spring.io ${basedir} /.. /.. Org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-tomcat org.hibernate hibernate-validator com.fasterxml.jackson.core jackson-databind org.springframework spring-web org.springframework spring-webmvc

This is the one that helps us import the dependency package we really need.

Springboot also has many scenario initiators, such as AOP, mail development, and so on. We only need to reference these starter in the project, and the relevant dependency packages for these scenarios will be imported automatically.

This is the end of the article on "how to use the springboot scene launcher". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Scenarios launchers projects articles more versions good practical tedious things that is content that is the beginning files articles knowledge this is email Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple OPPO Reno MySQL Xiaomi