This is the ninth day of my participation in the August More text Challenge. For details, see: August More Text Challenge
preface
So far, after a series of more articles, from simple custom annotations to the implementation of their own starter, from a simple run method to in-depth its startup principle, we have done around Spring Boot by shallow and deep aspects of the introduction, limited by space, Spring Boot related more articles are ready to end. While there are many features of Spring Boot that I haven’t covered yet, I should also have a better understanding of the framework. So what exactly is Spring Boot?
The development course
- At the beginning of understanding
Spring Boot
Before we do that, we need to understandSpring
. To be sure,Spring Boot
The birth ofSpring
The development of. In the very beginning of birth,Spring
To simplify alternatives to increasingly heavyweight enterprise-class Java technologies. But over time,JavaEE
It’s also evolving to be simplerJavaBean
Models, DEPENDENCY injection, and aspect aspects are also gradually integrated, which is undoubtedly influenced bySpring
The inspiration of success. - While being copied,
Spring
He didn’t stop. It continues to grow in other areas: mobile development, social API integration, security management,NoSQL
Database, cloud computing and big data are all areas it is involved in and innovative, its prospects are broader, and even formed and traditionalJavaEE
Platforms are competing. - But as the
Spring
The development of more and more fire,Spring
Gradually from a small and elaborate framework into a broad and comprehensive framework, on the other hand, with the development of new technology, letSpring
It’s getting clunky, a lot of cumbersomeXML
Configuration and third-party integration configuration, letSpring
Users are suffering, and a solution is urgently needed to solve these problems. - This is the moment
Spring Boot
Came into being, 2013Spring Boot
Research and development began in April 2014Spring Boot
This issue is released in 1.0.Spring Boot
At the beginning of the birth of the industry has been widely concerned, many individuals and enterprises began to try, withSpring Boot
With the release of 2.0, it’s once againSpring Boot
To the public view, there are more and more medium-sized and large enterprises toSpring Boot
Use of the formal production environment.
The Spring Boot project structure
Let’s take a look at the directory structure of the Spring Boot project.
Can beSpring Boot
The project is roughly divided into three parts, the first part isjava
Directory of code, the second part isresources
Directory containing our most important resource filesapplication.yml
Configuration. Through this document, really let us say goodbye inspring
In the overwhelming variety of configurations. The third part is ourspom.xml
File, here we need all the dependencies of the whole. Of which ourpom
The file will have a piece of code indicating that the project is based onspring
Boot built.
<modelVersion>4.0. 0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.52.</version> <relativePath/> <! -- lookup parent from repository --> </parent>Copy the code
conclusion
Let’s look at the name of the Spring Boot framework. Spring Boot is a tool for launching a Spring project. At its most fundamental, Spring Boot is a collection of libraries that can be used by any project’s build system. At the same time, Spring Boot has made it easier to develop, test, configure, and monitor,