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 understandingSpring BootBefore we do that, we need to understandSpring. To be sure,Spring BootThe birth ofSpringThe development of. In the very beginning of birth,SpringTo simplify alternatives to increasingly heavyweight enterprise-class Java technologies. But over time,JavaEEIt’s also evolving to be simplerJavaBeanModels, DEPENDENCY injection, and aspect aspects are also gradually integrated, which is undoubtedly influenced bySpringThe inspiration of success.

  • While being copied,SpringHe didn’t stop. It continues to grow in other areas: mobile development, social API integration, security management,NoSQLDatabase, cloud computing and big data are all areas it is involved in and innovative, its prospects are broader, and even formed and traditionalJavaEEPlatforms are competing.

  • But as theSpringThe development of more and more fire,SpringGradually from a small and elaborate framework into a broad and comprehensive framework, on the other hand, with the development of new technology, letSpringIt’s getting clunky, a lot of cumbersomeXMLConfiguration and third-party integration configuration, letSpringUsers are suffering, and a solution is urgently needed to solve these problems.

  • This is the momentSpring BootCame into being, 2013Spring BootResearch and development began in April 2014Spring BootThis issue is released in 1.0.Spring BootAt the beginning of the birth of the industry has been widely concerned, many individuals and enterprises began to try, withSpring BootWith the release of 2.0, it’s once againSpring BootTo the public view, there are more and more medium-sized and large enterprises toSpring BootUse 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 BootThe project is roughly divided into three parts, the first part isjavaDirectory of code, the second part isresourcesDirectory containing our most important resource filesapplication.ymlConfiguration. Through this document, really let us say goodbye inspringIn the overwhelming variety of configurations. The third part is ourspom.xmlFile, here we need all the dependencies of the whole. Of which ourpomThe file will have a piece of code indicating that the project is based onspringBoot 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,