天天看點

SpringBoot 之Spring Boot Starter依賴包及作用

Spring Boot 之Spring Boot Starter依賴包及作用

spring-boot-starter 

這是Spring Boot的核心啟動器,包含了自動配置、日志和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-mongodb 

支援MongoDB資料,包括spring-data-mongodb。

spring-boot-starter-data-rest 

通過spring-data-rest-webmvc,支援通過REST暴露Spring Data資料倉庫。

spring-boot-starter-data-solr 

支援Apache Solr搜尋平台,包括spring-data-solr。

spring-boot-starter-freemarker 

支援FreeMarker模闆引擎。

spring-boot-starter-groovy-templates 

支援Groovy模闆引擎。

spring-boot-starter-hateoas 

通過spring-hateoas支援基于HATEOAS的RESTful Web服務。

spring-boot-starter-hornetq 

通過HornetQ支援JMS。

spring-boot-starter-integration 

支援通用的spring-integration子產品。

spring-boot-starter-jdbc 

支援JDBC資料庫。

spring-boot-starter-jersey 

支援Jersey RESTful Web服務架構。

spring-boot-starter-jta-atomikos 

通過Atomikos支援JTA分布式事務處理。

spring-boot-starter-jta-bitronix 

通過Bitronix支援JTA分布式事務處理。

spring-boot-starter-mail 

支援javax.mail子產品。

spring-boot-starter-mobile 

支援spring-mobile。

spring-boot-starter-mustache 

支援Mustache模闆引擎。

spring-boot-starter-redis 

支援Redis鍵值存儲資料庫,包括spring-redis。

spring-boot-starter-security 

支援spring-security。

spring-boot-starter-social-facebook 

支援spring-social-facebook

spring-boot-starter-social-linkedin 

支援pring-social-linkedin

spring-boot-starter-social-twitter 

支援pring-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 

S支援全棧式Web開發,包括Tomcat和spring-webmvc。

spring-boot-starter-websocket 

支援WebSocket開發。

spring-boot-starter-ws 

支援Spring Web Services。 

Spring Boot應用啟動器面向生産環境的還有2種,具體如下:

spring-boot-starter-actuator 

增加了面向産品上線相關的功能,比如測量和監控。

spring-boot-starter-remote-shell 

增加了遠端ssh shell的支援。 

最後,Spring Boot應用啟動器還有一些替換技術的啟動器,具體如下:

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. 。

繼續閱讀