Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop-shop for all the Spring and related technology that you need, without having to hunt through sample code and copy paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access, just include the spring-boot-starter-data-jpa
dependency in your project, and you are good to go.
启动器是一组方便的依赖关系描述符,您可以将其配置在应用程序中。您可以获得所需的所有Spring及相关技术的一站式服务,而无需搜索示例代码并复制粘贴需要的依赖。 例如,如果您想使用Spring和JPA进行数据库访问,只需在项目中添加spring-boot-starter-data-jpa
依赖,就可以使用了。
The starters contain a lot of the dependencies that you need to get a project up and running quickly and with a consistent, supported set of managed transitive dependencies.
启动器包含许多依赖项,这些依赖项是使项目快速启动和运行所必需的,依赖之间可以互相支持及传递。
正如Creating your own starter(创建自己的启动程序部分)所述,第三方启动程序名不应该以spring-boot开头,因为它是为官方Spring Boot构件保留的。acme
作为第三方启动器通常命名为acme-spring-boot-starter
。
The following application starters are provided by Spring Boot under the org.springframework.boot
group:
以下启动器由Spring Bootorg.springframework.boot
项目提供:
Table 1.1. Spring Boot application starters
Name | Description | Pom |
---|---|---|
|
Core starter, including auto-configuration support, logging and YAML 核心启动器,包括自动配置支持,日志记录和YAML |
Pom |
|
Starter for JMS messaging using Apache ActiveMQ 使用Apache ActiveMQ消息队列进行Java消息服务的启动器 |
Pom |
|
Starter for using Spring AMQP and Rabbit MQ 使用Spring AMQP和Rabbit MQ消息队列务的启动器 |
Pom |
|
Starter for aspect-oriented programming with Spring AOP and AspectJ 使用Spring AOP和AspectJ进行面向切面编程 |
Pom |
|
Starter for JMS messaging using Apache Artemis 使用Apache Artemis消息队列进行JMS的启动器 |
Pom |
|
Starter for using Spring Batch 使用Spring Batch启动器 |
Pom |
|
Starter for using Spring Framework’s caching support 使用Spring Framework的缓存支持 |
Pom |
|
Starter for using Spring Cloud Connectors which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku 使用Spring Cloud Connectors的启动器简化了Cloud Foundry和Heroku等云平台中的服务连接 |
Pom |
|
Starter for using Cassandra distributed database and Spring Data Cassandra 使用Cassandra分布式数据库和Spring Data Cassandra的启动器 |
Pom |
|
Starter for using Couchbase document-oriented database and Spring Data Couchbase 使用Couchbase面向文档的数据库和Spring Data Couchbase的启动器 |
Pom |
|
Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch 使用Elasticsearch搜索和分析引擎以及Spring Data Elasticsearch的启动器 |
Pom |
|
Starter for using GemFire distributed data store and Spring Data GemFire 使用GemFire分布式数据存储和Spring Data GemFire的启动器 |
Pom |
|
Starter for using Spring Data JPA with Hibernate 使用带有Hibernate的Spring Data JPA的启动器 |
Pom |
|
Starter for using Spring Data LDAP 使用了Spring Data LDAP |
Pom |
|
Starter for using MongoDB document-oriented database and Spring Data MongoDB 使用了MongoDB面向文档的非关系型数据库和Spring Data MongoDB |
Pom |
|
Starter for using Neo4j graph database and Spring Data Neo4j 使用Neo4j图形数据库和Spring Data Neo4j |
Pom |
|
Starter for using Redis key-value data store with Spring Data Redis and the Jedis client 使用键值对形式的Redis数据库和Spring Data Redis |
Pom |
|
Starter for exposing Spring Data repositories over REST using Spring Data REST 使用Spring Data REST在REST上暴露Spring Data存储库服务 |
Pom |
|
Starter for using the Apache Solr search platform with Spring Data Solr 使用Apache Solr搜索平台和Spring Data Solr |
Pom |
|
Starter for building MVC web applications using FreeMarker views 使用FreeMarker静态模板创建MVC web项目 |
Pom |
|
Starter for building MVC web applications using Groovy Templates views 使用Groovy模板视图创建MVC web项目 |
Pom |
|
Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS 使用Spring MVC和Spring HATEOAS构建基于RESTful风格的Web应用程序 |
Pom |
|
Starter for using Spring Integration 使用Spring Integration |
Pom |
|
Starter for using JDBC with the Tomcat JDBC connection pool 将JDBC与Tomcat JDBC连接池一起使用 |
Pom |
|
Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to 使用JAX-RS和Jersey构建RESTful Web应用程序作为 |
Pom |
|
Starter for using jOOQ to access SQL databases. An alternative to 使用jOOQ访问SQL数据库,作为 |
Pom |
|
Starter for JTA transactions using Atomikos 使用Atomikos的JTA事务 |
Pom |
|
Starter for JTA transactions using Bitronix 使用Bitronix的JTA事务 |
Pom |
|
Spring Boot Narayana JTA Starter Spring Boot Narayana JTA启动器 |
Pom |
|
Starter for using Java Mail and Spring Framework’s email sending support 使用Java Mail和Spring Framework的发送邮件功能启动器 |
Pom |
|
Starter for building web applications using Spring Mobile 使用JSpring Mobile构件web应用的启动器 |
Pom |
|
Starter for building MVC web applications using Mustache views 使用Mustache视图构件MVC架构的web应用的启动器 |
Pom |
|
Starter for using Spring Security Spring Security启动器 |
Pom |
|
Starter for using Spring Social Facebook Spring Social Facebook启动器 |
Pom |
|
Stater for using Spring Social LinkedIn Spring Social LinkedIn启动器 |
Pom |
|
Starter for using Spring Social Twitter Spring Social Twitter启动器 |
Pom |
|
Starter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito 包括JUnit,Hamcrest和Mockito在内测试Spring Boot应用程序的启动器 |
Pom |
|
Starter for building MVC web applications using Thymeleaf views Thymeleaf静态模板启动器 |
Pom |
|
Starter for using Java Bean Validation with Hibernate Validator 使用了Hibernate Validator的Java Bean Validation验证启动器 |
Pom |
|
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container 使用Spring MVC构建Web(包括RESTful)应用程序。使用Tomcat作为默认嵌入式容器 |
Pom |
|
Starter for using Spring Web Services Spring Web Services启动器 |
Pom |
|
Starter for building WebSocket applications using Spring Framework’s WebSocket support 使用Spring Framework的WebSocket组件构建WebSocket应用程序启动器 |
Pom |
In addition to the application starters, the following starters can be used to add production ready features:
除应用程序启动器外,还可以使用以下production ready特性:
Table 1.2. Spring Boot production starters
Name | Description | Pom |
---|---|---|
|
Starter for using Spring Boot’s Actuator which provides production ready features to help you monitor and manage your application Spring Boot的Actuator的启动器,它提供生产就绪功能,帮助您监控和管理您的应用程序 |
Pom |
|
Starter for using the CRaSH remote shell to monitor and manage your application over SSH. Deprecated since 1.5 使用CRaSH远程shell通过SSH监视和管理应用程序。自1.5以来弃用 |
Pom |
Finally, Spring Boot also includes some starters that can be used if you want to exclude or swap specific technical facets:
最后,如果要排除更换特定的技术,Spring Boot还包括一些可以使用的启动器:
Table 1.3. Spring Boot technical starters
Name | Description | Pom |
---|---|---|
|
Starter for using Jetty as the embedded servlet container. An alternative to 使用Jetty作为嵌入式servlet容器,作为 |
Pom |
|
Starter for using Log4j2 for logging. An alternative to 使用Log4j2做日志管理,作为 |
Pom |
|
Starter for logging using Logback. Default logging starter 使用Logback进行日志记录。作为默认日志启动器 |
Pom |
|
Starter for using Tomcat as the embedded servlet container. Default servlet container starter used by 使用Tomcat作为嵌入式servlet容器,是 |
Pom |
|
Starter for using Undertow as the embedded servlet container. An alternative to 使用Undertow作为嵌入式servlet容器的,作为 |
Pom |
For a list of additional community contributed starters, see the README file in the spring-boot-starters
module on GitHub.
有关其他社区贡献的启动器的列表,请参阅GitHub上spring-boot-starters
模块中的README file文件。