Learning summary: understanding of springboot startup class Starters

1. What are Starters ?

Starters can be understood as a starter, which contains a series of dependency packages that can be integrated into the application, and you can integrate it in one stop
Spring and other technologies, without the need to find sample code and dependent packages everywhere. If you want to use Spring JPA to access the database, just
Add the spring-boot-starter-data-jpa starter dependency and you can use it. Starters contains many projects that need to be used
Dependencies, which run quickly and continuously, are a set of supported managed transitive dependencies.

2. Starters Naming

Spring Boot 's official starters are all named after spring-boot-starter- , which represents a specific application type. third
Fang's starters cannot be named starting with spring-boot , they are all officially reserved by Spring Boot . Generally a third party should
Named like this, like mybatis-spring-boot-starter of mybatis .

3. Starters classification

1.  Spring Boot application class starter

 

2. Spring Boot production starter

 

3. Spring Boot technology starter

 4. Commonly used starters

spring-boot-starter-web embedding tomcat and web development requires servlet and jsp support
spring-boot-starter-data-jpa database support
spring-boot-starter-data-redis redis database support
spring-boot-starter-data-solr solr 支持
mybatis-spring-boot-starter third-party mybatis integration starter


Summarize

The above is what I will talk about today. This article only briefly introduces the understanding and use of the startup class in springboot, and the one-stop integration of starters with other tools greatly simplifies the writing of previous configuration files.

Guess you like

Origin blog.csdn.net/Smion778/article/details/126220785