In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
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.
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.