springboot常用Starter介紹


1starter的依賴,這里以pom.xml中的spring-boot-starter為例,通過ctrl+鼠標點擊可以查看start中具體的依賴

 

 

 

 

 

 2官網

https://docs.spring.io/spring-boot/docs/2.3.3.BUILD-SNAPSHOT/reference/html/using-spring-boot.html#using-boot-starter

 

 

3常用的starter

spring-boot-starter-activemq

spring-boot-starter-aop

spring-boot-starter-data-redis

spring-boot-starter-freemarker

spring-boot-starter-thymeleaf

spring-boot-starter-webflux

 

4常見的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.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM