Spring Boot常用starter

21 篇文章 0 订阅
本文详细介绍了SpringBoot提供的各种启动器,包括核心、消息传递、数据访问、Web服务、安全、测试等多个方面,帮助开发者快速理解并选择合适的启动器来构建应用程序。此外,还提到了用于生产就绪功能和特定技术选择的启动器。
摘要由CSDN通过智能技术生成

 

 

Spring Boot在该org.springframework.boot组下提供了以下应用程序启动器:

表1. Spring Boot应用程序启动器
姓名描述

spring-boot-starter

核心入门工具,包括自动配置支持,日志记录和YAML

spring-boot-starter-activemq

使用Apache ActiveMQ的JMS消息传递入门

spring-boot-starter-amqp

使用Spring AMQP和Rabbit MQ的入门

spring-boot-starter-aop

使用Spring AOP和AspectJ进行面向方面编程的入门

spring-boot-starter-artemis

使用Apache Artemis的JMS消息传递入门

spring-boot-starter-batch

使用Spring Batch的入门

spring-boot-starter-cache

使用Spring Framework的缓存支持的入门者

spring-boot-starter-data-cassandra

使用Cassandra分布式数据库和Spring Data Cassandra的入门

spring-boot-starter-data-cassandra-reactive

使用Cassandra分布式数据库和Spring Data Cassandra Reactive的入门

spring-boot-starter-data-couchbase

使用Couchbase面向文档的数据库和Spring Data Couchbase的入门

spring-boot-starter-data-couchbase-reactive

使用Couchbase面向文档的数据库和Spring Data Couchbase Reactive的入门

spring-boot-starter-data-elasticsearch

使用Elasticsearch搜索和分析引擎以及Spring Data Elasticsearch的入门者

spring-boot-starter-data-jdbc

使用Spring Data JDBC的入门

spring-boot-starter-data-jpa

将Spring Data JPA与Hibernate结合使用的入门

spring-boot-starter-data-ldap

使用Spring Data LDAP的入门

spring-boot-starter-data-mongodb

使用MongoDB面向文档的数据库和Spring Data MongoDB的入门

spring-boot-starter-data-mongodb-reactive

使用MongoDB面向文档的数据库和Spring Data MongoDB Reactive的入门

spring-boot-starter-data-neo4j

使用Neo4j图形数据库和Spring Data Neo4j的入门工具

spring-boot-starter-data-r2dbc

使用Spring Data R2DBC的入门

spring-boot-starter-data-redis

使用Redis键值数据存储与Spring Data Redis和Lettuce客户端的入门

spring-boot-starter-data-redis-reactive

将Redis键值数据存储与Spring Data Redis Reacting和Lettuce客户端一起使用的入门

spring-boot-starter-data-rest

使用Spring Data REST在REST上公开Spring数据存储库的入门

spring-boot-starter-data-solr

将Apache Solr搜索平台与Spring Data Solr结合使用的入门者。从2.3.9版开始不推荐使用

spring-boot-starter-freemarker

使用FreeMarker视图构建MVC Web应用程序的入门

spring-boot-starter-groovy-templates

使用Groovy模板视图构建MVC Web应用程序的入门

spring-boot-starter-hateoas

使用Spring MVC和Spring HATEOAS构建基于超媒体的RESTful Web应用程序的入门者

spring-boot-starter-integration

使用Spring Integration的入门

spring-boot-starter-jdbc

结合使用JDBC和HikariCP连接池的入门

spring-boot-starter-jersey

使用JAX-RS和Jersey构建RESTful Web应用程序的入门。的替代品spring-boot-starter-web

spring-boot-starter-jooq

使用jOOQ访问SQL数据库的入门。替代spring-boot-starter-data-jpaspring-boot-starter-jdbc

spring-boot-starter-json

读写JSON入门

spring-boot-starter-jta-atomikos

使用Atomikos的JTA交易入门

spring-boot-starter-jta-bitronix

使用Bitronix的JTA交易入门。从2.3.0版本开始不推荐使用

spring-boot-starter-mail

使用Java Mail和Spring Framework的电子邮件发送支持的入门

spring-boot-starter-mustache

使用Mustache视图构建Web应用程序的入门

spring-boot-starter-oauth2-client

使用Spring Security的OAuth2 / OpenID Connect客户端功能的入门

spring-boot-starter-oauth2-resource-server

使用Spring Security的OAuth2资源服务器功能的入门

spring-boot-starter-quartz

入门使用Quartz Scheduler

spring-boot-starter-rsocket

用于构建RSocket客户端和服务器的入门

spring-boot-starter-security

使用Spring Security的入门

spring-boot-starter-test

用于使用包括JUnit Jupiter,Hamcrest和Mockito在内的库测试Spring Boot应用程序的入门程序

spring-boot-starter-thymeleaf

使用Thymeleaf视图构建MVC Web应用程序的入门

spring-boot-starter-validation

初学者,可将Java Bean验证与Hibernate Validator结合使用

spring-boot-starter-web

使用Spring MVC构建Web(包括RESTful)应用程序的入门程序。使用Tomcat作为默认的嵌入式容器

spring-boot-starter-web-services

使用Spring Web Services的入门

spring-boot-starter-webflux

使用Spring Framework的反应式Web支持构建WebFlux应用程序的入门者

spring-boot-starter-websocket

使用Spring Framework的WebSocket支持构建WebSocket应用程序的入门

除了应用程序启动程序,以下启动程序可用于添加生产就绪功能:

表2. Spring Boot生产入门
姓名描述

spring-boot-starter-actuator

使用Spring Boot的Actuator的入门程序,该启动器提供了生产就绪功能,可帮助您监视和管理应用程序

最后,Spring Boot还包括以下启动程序,如果您想排除或交换特定的技术方面,可以使用这些启动程序:

表3. Spring Boot技术入门
姓名描述

spring-boot-starter-jetty

使用Jetty作为嵌入式servlet容器的入门者。的替代品spring-boot-starter-tomcat

spring-boot-starter-log4j2

使用Log4j2进行日志记录的启动器。的替代品spring-boot-starter-logging

spring-boot-starter-logging

使用Logback进行日志记录的启动器。默认记录启动器

spring-boot-starter-reactor-netty

入门,用于将Reactor Netty用作嵌入式反应式HTTP服务器。

spring-boot-starter-tomcat

入门,用于将Tomcat用作嵌入式servlet容器。默认使用的servlet容器启动器spring-boot-starter-web

spring-boot-starter-undertow

使用Undertow作为嵌入式servlet容器的入门者。的替代品spring-boot-starter-tomcat

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值