In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what the role of Starter in SpringBoot is. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
I. introduction of Starter in official documents
Through the introduction in the official documentation, Starter is actually a "package" provided to us by Spring for unused development scenarios. Similarly, when we go to KFC for dinner, some students may choose their favorite food to place an order, but some students are not so picky about their diet and go directly to the spicy chicken leg burger set meal with high quality and low price. And this spicy chicken leg burger package is the Starter we are going to introduce today.
II. Starter classification
1. Spring officials provide us with a variety of Starter options, about 50 kinds of Starter for us to choose from. Among them, according to partial application, product and technology, it is divided into three categories:
Partial application: Spring Boot application starters
Partial product: Spring Boot production starters
Partial technology: Spring Boot technical starters
2. For the following specific Starter, you can participate in the introduction in the official document:
Official document address: https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.build-systems.starters 3. Take a web development scenario as an example to see what spring-boot-starter-web has introduced for us.
1. The Starter of web is first introduced into the pom.xml file in the springboot project, as shown below:
Org.springframework.boot spring-boot-starter-web
2. After the introduction, we found that we downloaded a lot of jar packages one after another. Take a look at the maven dependencies to see which jar packages have been introduced into the project now. As follows:
From the above dependency diagram, we find that web's Starter provides us with the capabilities of webmvc, web, tomcat and json, which can explain why the project can run on its own instead of configuring tomcat.
This is the end of the article on "what is the role of Starter in SpringBoot". 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.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.