SpringBoot场景启动器—Starts(1.5.9.RELEASE)

 SpringBoot(1.5.9.RELEASE)—Starters启动器

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

NameDescriptionPom

spring-boot-starter

Core starter, including auto-configuration support, logging and YAML

核心启动器,包括自动配置支持,日志记录和YAML

Pom

spring-boot-starter-activemq

Starter for JMS messaging using Apache ActiveMQ

使用Apache ActiveMQ消息队列进行Java消息服务的启动器

Pom

spring-boot-starter-amqp

Starter for using Spring AMQP and Rabbit MQ

使用Spring AMQP和Rabbit MQ消息队列务的启动器

Pom

spring-boot-starter-aop

Starter for aspect-oriented programming with Spring AOP and AspectJ

使用Spring AOP和AspectJ进行面向切面编程

Pom

spring-boot-starter-artemis

Starter for JMS messaging using Apache Artemis

使用Apache Artemis消息队列进行JMS的启动器

Pom

spring-boot-starter-batch

Starter for using Spring Batch

使用Spring Batch启动器

Pom

spring-boot-starter-cache

Starter for using Spring Framework’s caching support

使用Spring Framework的缓存支持

Pom

spring-boot-starter-cloud-connectors

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

spring-boot-starter-data-cassandra

Starter for using Cassandra distributed database and Spring Data Cassandra

使用Cassandra分布式数据库和Spring Data Cassandra的启动器

Pom

spring-boot-starter-data-couchbase

Starter for using Couchbase document-oriented database and Spring Data Couchbase

使用Couchbase面向文档的数据库和Spring Data Couchbase的启动器

Pom

spring-boot-starter-data-elasticsearch

Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch

使用Elasticsearch搜索和分析引擎以及Spring Data Elasticsearch的启动器

Pom

spring-boot-starter-data-gemfire

Starter for using GemFire distributed data store and Spring Data GemFire

使用GemFire分布式数据存储和Spring Data GemFire的启动器

Pom

spring-boot-starter-data-jpa

Starter for using Spring Data JPA with Hibernate

使用带有Hibernate的Spring Data JPA的启动器

Pom

spring-boot-starter-data-ldap

Starter for using Spring Data LDAP

使用了Spring Data LDAP

Pom

spring-boot-starter-data-mongodb

Starter for using MongoDB document-oriented database and Spring Data MongoDB

使用了MongoDB面向文档的非关系型数据库和Spring Data MongoDB

Pom

spring-boot-starter-data-neo4j

Starter for using Neo4j graph database and Spring Data Neo4j

使用Neo4j图形数据库和Spring Data Neo4j

Pom

spring-boot-starter-data-redis

Starter for using Redis key-value data store with Spring Data Redis and the Jedis client

使用键值对形式的Redis数据库和Spring Data Redis

Pom

spring-boot-starter-data-rest

Starter for exposing Spring Data repositories over REST using Spring Data REST

使用Spring Data REST在REST上暴露Spring Data存储库服务

Pom

spring-boot-starter-data-solr

Starter for using the Apache Solr search platform with Spring Data Solr

使用Apache Solr搜索平台和Spring Data Solr

Pom

spring-boot-starter-freemarker

Starter for building MVC web applications using FreeMarker views

使用FreeMarker静态模板创建MVC web项目

Pom

spring-boot-starter-groovy-templates

Starter for building MVC web applications using Groovy Templates views

使用Groovy模板视图创建MVC web项目

Pom

spring-boot-starter-hateoas

Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS

使用Spring MVC和Spring HATEOAS构建基于RESTful风格的Web应用程序

Pom

spring-boot-starter-integration

Starter for using Spring Integration

使用Spring Integration

Pom

spring-boot-starter-jdbc

Starter for using JDBC with the Tomcat JDBC connection pool

将JDBC与Tomcat JDBC连接池一起使用

Pom

spring-boot-starter-jersey

Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web

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

Pom

spring-boot-starter-jooq

Starter for using jOOQ to access SQL databases. An alternative to spring-boot-starter-data-jpa or spring-boot-starter-jdbc

使用jOOQ访问SQL数据库,作为spring-boot-starter-data-jpa or spring-boot-starter-jdbc的替代品

Pom

spring-boot-starter-jta-atomikos

Starter for JTA transactions using Atomikos

使用Atomikos的JTA事务

Pom

spring-boot-starter-jta-bitronix

Starter for JTA transactions using Bitronix

使用Bitronix的JTA事务

Pom

spring-boot-starter-jta-narayana

Spring Boot Narayana JTA Starter

Spring Boot Narayana JTA启动器

Pom

spring-boot-starter-mail

Starter for using Java Mail and Spring Framework’s email sending support

使用Java Mail和Spring Framework的发送邮件功能启动器

Pom

spring-boot-starter-mobile

Starter for building web applications using Spring Mobile

使用JSpring Mobile构件web应用的启动器

Pom

spring-boot-starter-mustache

Starter for building MVC web applications using Mustache views

使用Mustache视图构件MVC架构的web应用的启动器

Pom

spring-boot-starter-security

Starter for using Spring Security

Spring Security启动器

Pom

spring-boot-starter-social-facebook

Starter for using Spring Social Facebook

Spring Social Facebook启动器

Pom

spring-boot-starter-social-linkedin

Stater for using Spring Social LinkedIn

Spring Social LinkedIn启动器

Pom

spring-boot-starter-social-twitter

Starter for using Spring Social Twitter

Spring Social Twitter启动器

Pom

spring-boot-starter-test

Starter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito

包括JUnit,Hamcrest和Mockito在内测试Spring Boot应用程序的启动器

Pom

spring-boot-starter-thymeleaf

Starter for building MVC web applications using Thymeleaf views

Thymeleaf静态模板启动器

Pom

spring-boot-starter-validation

Starter for using Java Bean Validation with Hibernate Validator

使用了Hibernate Validator的Java Bean Validation验证启动器

Pom

spring-boot-starter-web

Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container

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

Pom

spring-boot-starter-web-services

Starter for using Spring Web Services

Spring Web Services启动器

Pom

spring-boot-starter-websocket

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

NameDescriptionPom

spring-boot-starter-actuator

Starter for using Spring Boot’s Actuator which provides production ready features to help you monitor and manage your application

Spring Boot的Actuator的启动器,它提供生产就绪功能,帮助您监控和管理您的应用程序

Pom

spring-boot-starter-remote-shell

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

NameDescriptionPom

spring-boot-starter-jetty

Starter for using Jetty as the embedded servlet container. An alternative to spring-boot-starter-tomcat

使用Jetty作为嵌入式servlet容器,作为spring-boot-starter-tomcat的替代

Pom

spring-boot-starter-log4j2

Starter for using Log4j2 for logging. An alternative to spring-boot-starter-logging

使用Log4j2做日志管理,作为spring-boot-starter-logging的替代。

Pom

spring-boot-starter-logging

Starter for logging using Logback. Default logging starter

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

Pom

spring-boot-starter-tomcat

Starter for using Tomcat as the embedded servlet container. Default servlet container starter used by spring-boot-starter-web

使用Tomcat作为嵌入式servlet容器,是spring-boot-starter-web的默认启动器

Pom

spring-boot-starter-undertow

Starter for using Undertow as the embedded servlet container. An alternative to spring-boot-starter-tomcat

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

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文件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值