「初识」SpringBoot常用的Starter有哪些


spring-boot-starte


  org.springframework.boot
  spring-boot-starter
  2.6.2
  compile

这是Spring Boot的核心启动器,包含了自动配置、日志和YAML。

一般不会直接使用,大部分spring-boot-starter-[name]会自动依赖引入的。

spring-boot-starter-web


	org.springframework.boot
	spring-boot-starter-web

支持全栈式Web开发,包括Tomcat和spring-webmvc。

spring-boot-starter-aop


	org.springframework.boot
	spring-boot-starter-aop

支持面向方面的编程即AOP,包括spring-aop和AspectJ。

spring-boot-starter-amqp 


	org.springframework.boot
	spring-boot-starter-amqp

通过spring-rabbit来支持AMQP协议。

spring-boot-starter-cache


	org.springframework.boot
	spring-boot-starter-cache

支持Spring的Cache抽象。

spring-boot-starter-data-elasticsearch 


	org.springframework.boot
	spring-boot-starter-data-elasticsearch

支持ElasticSearch搜索和分析引擎,包括spring-data-elasticsearch。

spring-boot-starter-data-jpa


	org.springframework.boot
	spring-boot-starter-data-jpa

持JPA(Java Persistence API,包括spring-data-jpa、spring-orm、Hibernate。

spring-boot-starter-data-mongodb


	org.springframework.boot
	spring-boot-starter-data-mongodb

支持MongoDB数据,包括spring-data-mongodb。

spring-boot-starter-data-solr


	org.springframework.boot
	spring-boot-starter-data-solr
    
	2.4.13

支持Apache Solr搜索平台,包括spring-data-solr。

spring-boot-starter-jdbc


	org.springframework.boot
	spring-boot-starter-jdbc

支持JDBC数据库。

spring-boot-starter-jta-atomikos


	org.springframework.boot
	spring-boot-starter-jta-atomikos

通过Atomikos支持JTA分布式事务处理。 

spring-boot-starter-jta-bitronix


    org.springframework.boot
    spring-boot-starter-jta-bitronix
    
    2.4.13

通过Bitronix支持JTA分布式事务处理。

spring-boot-starter-mail


	org.springframework.boot
	spring-boot-starter-mail

支持javax.mail模块。

spring-boot-starter-mobile


	org.springframework.boot
	spring-boot-starter-mobile
	1.5.22.RELEASE

支持spring-mobile。

spring-boot-starter-data-redis


	org.springframework.boot
	spring-boot-starter-data-redis

支持Redis键值存储数据库,包括spring-redis。

spring-boot-starter-security


	org.springframework.boot
	spring-boot-starter-security

支持spring-security。

spring-boot-starter-test


	org.springframework.boot
	spring-boot-starter-test

支持常规的测试依赖,包括JUnit、Hamcrest、Mockito以及spring-test模块。

spring-boot-starter-websocket 


	org.springframework.boot
	spring-boot-starter-websocket

支持WebSocket开发。 

spring-boot-starter-actuator


	org.springframework.boot
	spring-boot-starter-actuator

增加了面向产品上线相关的功能,比如测量和监控。

spring-boot-starter-jetty


	org.springframework.boot
	spring-boot-starter-jetty

引入了Jetty HTTP引擎(用于替换Tomcat)

spring-boot-starter-log4j


    org.springframework.boot
    spring-boot-starter-log4j

支持Log4J日志框架。

spring-boot-starter-logging


	org.springframework.boot
	spring-boot-starter-logging

引入了Spring Boot默认的日志框架Logback。

spring-boot-starter-tomcat


	org.springframework.boot
	spring-boot-starter-tomcat

引入了Spring Boot默认的HTTP引擎Tomcat。

spring-boot-starter-undertow


	org.springframework.boot
	spring-boot-starter-undertow

引入了Undertow HTTP引擎(用于替换Tomcat)

更多的查看:SpringBoot的starter