本文共 2745 字,大约阅读时间需要 9 分钟。
Spring boot启动器。Spring boot是由一系列启动器组成的,这些启动器构成一个强大的灵活的开发助手。开发人员根据项目需要,选择并组合相应的启动器,就可以快速搭建一个适合项目需要的基础运行框架。
Spring boot 提供的启动器:
spring-boot-starter 核心模块,包含自动配置支持、日志库和对 YAML 配置文件的支持。 spring-boot-starter-amqp 通过 spring-rabbit 来支持AMQP协议(Advanced Message Queuing Protocol) spring-boot-starter-aop 支持面向方面的编程即AOP,包括 spring-aop 和 AspectJ spring-boot-starter-artemis 通过 Apache Artemis 支持 JMS 的 API(Java Message Service API) spring-boot-starter-batch 支持 Spring Batch,包括 HSQLDB 数据库 spring-boot-starter-cache 支持 Spring 的 Cache 抽象 spring-boot-starter-cloud-connectors 支持 Spring Cloud Connectors,简化了在像 Cloud Foundry 或 Heroku 这样的云平台上连接服务 spring-boot-starter-data-elasticsearch 支持 ElasticSearch 搜索和分析引擎,包括 spring-data-elasticsearch spring-boot-starter-data-gemfire 支持 GemFire 分布式数据存储,包括 spring-data-gemfire spring-boot-starter-data-jpa 支持 JPA(Java Persistence API),包括 spring-data-jpa、spring-orm、Hibernate spring-boot-starter-data-solr 支持 Apache Solr 搜索平台,包括 spring-data-solr spring-boot-starter-data-mongodb 支持MongoDB数据,包括spring-data-mongodb spring-boot-starter-data-rest 通过 spring-data-rest-webmvc,支持通过 REST 暴露 Spring Data 数据仓库 spring-boot-starter-redis 支持 Redis 键值存储数据库,包括 spring-redis spring-boot-starter-data-jdbc 支持 JDBC 访问数据库 spring-boot-starter-jta-atomikos 通过 Atomikos 支持 JTA 分布式事务处理 spring-boot-starter-jta-bitronix 通过Bitronix支持JTA分布式事务处理 spring-boot-starter-security 支持 spring-security spring-boot-starter-test 支持常规的测试依赖,包括JUnit、Hamcrest、Mockito以及spring-test模块 spring-boot-starter-velocity 支持Velocity模板引擎 spring-boot-starter-freemarker 支持 FreeMarker 模板引擎 spring-boot-starter-thymeleaf 支持 Thymeleaf 模板引擎,包括与Spring的集成 spring-boot-starter-mustache 支持 Mustache 模板引擎 spring-boot-starter-web 支持全栈式 Web 开发,包括 Tomcat 和 spring-webmvc spring-boot-starter-websocket 支持 WebSocket 开发 spring-boot-starter-ws 支持 Spring Web Services spring-boot-starter-groovy-templates 支持 Groovy 模板引擎 spring-boot-starter-hateoas 通过 spring-hateoas 支持基于 HATEOAS 的 RESTful Web 服务 spring-boot-starter-hornetq 通过 HornetQ 支持 JMS spring-boot-starter-log4j 支持 Log4J 日志框架 spring-boot-starter-logging 引入了 Spring Boot 默认的日志框架 Logback spring-boot-starter-integration 支持通用的 spring-integration 模块 spring-boot-starter-jersey 支持 Jersey RESTful Web 服务框架 spring-boot-starter-mail 支持 javax.mail 模块 spring-boot-starter-mobile 支持 spring-mobile 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-actuator 增加了面向产品上线相关的功能,比如测量和监控 spring-boot-starter-remote-shell 增加了远程ssh shell的支持 spring-boot-starter-tomcat 引入了 Spring Boot 默认的 HTTP 引擎 Tomcat spring-boot-starter-jetty 引入了Jetty HTTP引擎(用于替换Tomcat) spring-boot-starter-undertow 引入了Undertow HTTP引擎(用于替换Tomcat)转载地址:http://rpbai.baihongyu.com/