新建一個springBoot項目時,你會選擇很多依賴,在項目中的build.gradle中你會看見各種start,例如下邊的代碼:
今天就在這里列舉一下各種start:
1、spring-boot-starter
Spring Boot核心starter,包含自動配置、日志、yal配置文件支持
2、spring-boot-starter-actuator
准生產特性、用於監控和管理應用
3、spring-boot-starter-remote-shell
提供基於ssh協議的監控和管理
4、spring-boot-starter-amqp
使用spring-rabbitlai zhichi AMQP
5、spring-boot-starter-aop
使用spring-aop和AspectJ支持面向切面編程
6、spring-boot-starter-batch
對Spring Batch的支持
7、spring-boot-starter-cache
對Spring Cache的抽象支持
8、spring-boot-starter-cloud-connectors
對雲平台(Cloud Foundry、Heroku)提供的服務提供簡化的連接方式
9、spring-boot-starter-data-elasticsearch
通過spring-data-elasticsearch對Elasticsearch支持
10、spring-boot-starter-data-gemfire
通過spring-data-gemfire對分布式存儲GemFire的支持
11、spring-boot-starter-data-jpa
對JPA的支持,包含spring-data-jpa、spring-orm和hibernate
12、spring-boot-starter-mongodb
通過spring-data-mongodb,對mongodb的支持
13、spring-boot-starter-rest
通過spring-data-rest-webmvc將Spring Data repository暴露為REST形式服務
14、spring-boot-starter-solr
通過spring-data-solr對Apache Solr數據檢索的支持
15、spring-boot-starter-freemarker
對Freemarker模板引擎的支持
16、spring-boot-starter-groovy-templates
通過spring-hateoas對基於HATEOAS的REST形式網絡服務支持
17、spring-boot-starter-hornetq
通過HornetQ對JMS的支持
18、spring-boot-starter-integration
對系統集成框架spring-integration支持
19、spring-boot-starter-jdbc
對JDBC數據庫的支持
20、spring-boot-starter-jersey
對Jersery REST形式網絡服務支持
21、spring-boot-starter-jta-atomikos
通過Atomikos對分布式事務的支持
22、spring-boot-starter-mail
對javax.mail的支持
23、spring-boot-starter-mobile
對spring-mobile的支持
24、spring-boot-starter-mustache
對Mustache模板引擎的支持
25、spring-boot-starter-redis
對Redis的支持,包含spring-redis
26、spring-boot-starter-security
對spring-security的支持
27、spring-boot-starter-social-facebook
對Facebook支持
28、spring-boot-starter-social-linkedin
對linkedin支持
29、spring-boot-starter-social-twitter
對Twitter支持
30、spring-boot-starter-test
對常用測試框架JUnit、Hamcrest和Mockito的支持,包含spring-test模塊
31、spring-boot-starter-thymeleaf
對Thymeleaf模板引擎的支持,包含於Spring整合的配置
32、spring-boot-starter-velocity
對Velocity模板引擎的支持
33、spring-boot-starter-web
對Web項目開發支持,包含Tomcat和Spring MVC
34、spring-boot-starter-Tomcat
Spring Boot默認Servlet容器
35、spring-boot-starter-Jetty
使用Jetty作為Servlet容器
36、spring-boot-starter-undertow
使用Undertow作為Servlet容器
37、spring-boot-starter-logging
Spring Boot默認日志框架logback
38、spring-boot-starter-log4j
支持使用Log4J日志框架
39、spring-boot-starter-websocket
對websocket的支持
40、spring-boot-starter-ws
對Spring Web Service支持