Introduction to the four major components of springboot

Table of contents

an introduction

1. Auto-configuration component

2. The starter component

3. springboot cli component

4. Actuator components

references


an introduction

1. Auto-configuration component

Spring Boot auto-configuration represents a way to automatically configure Spring applications based on the dependencies present on the classpath. It is also possible to eliminate certain beans contained in an auto-configuration class by definition. These can make development faster and easier.

  • Create a Spring Boot application through the startup class
  • @SpringBootApplication annotation
  • Custom auto-configuration
  • automatic condition
  • Test auto-configuration
  • Disable auto-configuration classes

2. The starter component

One of the rationale behind Spring Boot is to solve similar problems. Spring Boot Starter is a set of convenient dependency descriptors that can be easily included in any level of application. These Starters serve as the bootstrap process for Spring-related technologies, we no longer need to worry about dependencies, they will be automatically managed by Spring Boot Starters.

Starters contains many of the dependencies you need to get your project up and running quickly, with a consistent, supported set of managed transitive dependencies. These Starters are used to bootstrap the application, all we need is to include the correct Starters in the application, and Spring Boot will ensure that all dependencies required by the selected Starters are in your classpath.

3. springboot cli component

Spring Boot CLI provides Spring Cloud with Spring Boot command-line functionality. You can write groovy scripts to run Spring Cloud component applications (like @enableurekaserver). You can also easily perform operations such as encryption and decryption to support Spring Cloud configuration clients with confidential configuration values. Using the launcher cli, you can conveniently start services such as eureka, zipkin, config server, etc. at the same time from the command line (this is very useful when developing).

4. Actuator components

Actuator is a functional module provided by Springboot to introspect and monitor the application system. With the help of Actuator, developers can easily view and count some monitoring indicators of the application system.

references

https://www.jianshu.com/p/6d540c66273c

https://www.jianshu.com/p/d166d935217b

https://blog.csdn.net/superfjj/article/details/104073953

https://blog.csdn.net/peterwanghao/article/details/88260323

https://blog.csdn.net/pengjunlee/article/details/80235390

Guess you like

Origin blog.csdn.net/u013380694/article/details/116489394