Skip to content

Spring Boot Starter 速查 ​

官方 Starter ​

Starter说明
spring-boot-starter-webWeb 应用(内嵌 Tomcat)
spring-boot-starter-data-jpaJPA + Hibernate
spring-boot-starter-data-redisRedis(Lettuce)
spring-boot-starter-data-mongodbMongoDB
spring-boot-starter-data-elasticsearchElasticsearch
spring-boot-starter-amqpRabbitMQ
spring-boot-starter-kafkaKafka
spring-boot-starter-securitySpring Security
spring-boot-starter-oauth2-clientOAuth2 客户端
spring-boot-starter-oauth2-resource-serverOAuth2 资源服务器
spring-boot-starter-validation参数校验(Hibernate Validator)
spring-boot-starter-cache缓存抽象
spring-boot-starter-actuator监控端点
spring-boot-starter-test测试(JUnit + Mockito)
spring-boot-starter-webflux响应式 Web
spring-boot-starter-websocketWebSocket
spring-boot-starter-mail邮件发送
spring-boot-starter-quartzQuartz 定时任务
spring-boot-starter-flyway数据库迁移(Flyway)
spring-boot-starter-liquibase数据库迁移(Liquibase)
spring-boot-starter-integrationSpring Integration

常用第三方 Starter ​

Starter说明
mybatis-spring-boot-starterMyBatis
mybatis-plus-boot-starterMyBatis-Plus
pagehelper-spring-boot-starterPageHelper 分页
knife4j-openapi3-spring-boot-starterAPI 文档(Swagger 增强)
springdoc-openapi-starter-webmvc-uiOpenAPI 3 文档
redisson-spring-boot-starterRedisson(分布式锁)
xxl-job-spring-boot-starterXXL-JOB 分布式任务调度
spring-cloud-starter-gatewaySpring Cloud Gateway
spring-cloud-starter-openfeignOpenFeign 声明式调用
spring-cloud-starter-alibaba-nacos-discoveryNacos 服务发现
spring-cloud-starter-alibaba-nacos-configNacos 配置中心
spring-cloud-starter-alibaba-sentinelSentinel 限流降级

Actuator 端点 ​

端点说明
/actuator/health健康检查
/actuator/info应用信息
/actuator/metrics指标数据
/actuator/env环境变量
/actuator/configprops配置属性
/actuator/beansBean 列表
/actuator/mappingsURL 映射
/actuator/loggers日志级别
/actuator/threaddump线程 dump
/actuator/heapdump堆 dump
/actuator/prometheusPrometheus 格式指标

Released under the MIT License.