各种 starter poms (启动器)

来源:互联网 发布:毁灭战士4优化 贴吧 编辑:程序博客网 时间:2024/05/22 10:53

starter包含了搭建项目,快速运行所需的依赖。它是一个依赖关系描述符的集合。当应用需要一种spring的服务时,不需要粘贴拷贝大量的依赖关系描述符。例如想在spring中使用redis,只需要在项目中包含 spring-boot-starter-redis 依赖就可以使用了。

 

名字有什么含义:所有的starters遵循一个相似的命名模式:spring-boot-starter-*,在这里*是一种特殊类型的应用程序。该命名结构旨在帮你找到需要的starter。很多IDEs集成的Maven允许你通过名称搜索依赖。

下面的应用程序starters是Spring Boot在org.springframework.boot组下提供的:

 1. Spring Boot application starters

名称描述spring-boot-starter核心Spring Boot starter,包括自动配置支持,日志和YAMLspring-boot-starter-actuator生产准备的特性,用于帮你监控和管理应用spring-boot-starter-amqp对"高级消息队列协议"的支持,通过spring-rabbit实现spring-boot-starter-aop对面向切面编程的支持,包括spring-aop和AspectJspring-boot-starter-batch对Spring Batch的支持,包括HSQLDB数据库spring-boot-starter-cloud-connectors对Spring Cloud Connectors的支持,简化在云平台下(例如,Cloud Foundry 和Heroku)服务的连接spring-boot-starter-data-elasticsearch对Elasticsearch搜索和分析引擎的支持,包括spring-data-elasticsearchspring-boot-starter-data-gemfire对GemFire分布式数据存储的支持,包括spring-data-gemfirespring-boot-starter-data-jpa对"Java持久化API"的支持,包括spring-data-jpaspring-orm和Hibernatespring-boot-starter-data-mongodb对MongoDB NOSQL数据库的支持,包括spring-data-mongodbspring-boot-starter-data-rest对通过REST暴露Spring Data仓库的支持,通过spring-data-rest-webmvc实现spring-boot-starter-data-solr对Apache Solr搜索平台的支持,包括spring-data-solrspring-boot-starter-freemarker对FreeMarker模板引擎的支持spring-boot-starter-groovy-templates对Groovy模板引擎的支持spring-boot-starter-hateoas对基于HATEOAS的RESTful服务的支持,通过spring-hateoas实现spring-boot-starter-hornetq对"Java消息服务API"的支持,通过HornetQ实现spring-boot-starter-integration对普通spring-integration模块的支持spring-boot-starter-jdbc对JDBC数据库的支持spring-boot-starter-jersey对Jersey RESTful Web服务框架的支持spring-boot-starter-jta-atomikos对JTA分布式事务的支持,通过Atomikos实现spring-boot-starter-jta-bitronix对JTA分布式事务的支持,通过Bitronix实现spring-boot-starter-mail对javax.mail的支持spring-boot-starter-mobile对spring-mobile的支持spring-boot-starter-mustache对Mustache模板引擎的支持spring-boot-starter-redis对REDIS键值数据存储的支持,包括spring-redisspring-boot-starter-security对spring-security的支持spring-boot-starter-social-facebook对spring-social-facebook的支持spring-boot-starter-social-linkedin对spring-social-linkedin的支持spring-boot-starter-social-twitter对spring-social-twitter的支持spring-boot-starter-test对常用测试依赖的支持,包括JUnit, Hamcrest和Mockito,还有spring-test模块spring-boot-starter-thymeleaf对Thymeleaf模板引擎的支持,包括和Spring的集成spring-boot-starter-velocity对Velocity模板引擎的支持spring-boot-starter-web对全栈web开发的支持,包括Tomcat和spring-webmvcspring-boot-starter-websocket对WebSocket开发的支持spring-boot-starter-ws对Spring Web服务的支持

2. 除了应用程序的starters,下面的starters可以用于添加生产准备的特性。

 Spring Boot生产准备的starters

名称描述spring-boot-starter-actuator添加生产准备特性,比如指标和监控spring-boot-starter-remote-shell添加远程ssh shell支持

3. 最后,Spring Boot包含一些可用于排除或交换具体技术方面的starters。

Spring Boot technical starters

名称描述spring-boot-starter-jetty导入Jetty HTTP引擎(作为Tomcat的替代)spring-boot-starter-log4j对Log4J日志系统的支持spring-boot-starter-logging导入Spring Boot的默认日志系统(Logback)spring-boot-starter-tomcat导入Spring Boot的默认HTTP引擎(Tomcat)spring-boot-starter-undertow导入Undertow HTTP引擎(作为Tomcat的替代)
原创粉丝点击