关于spring:SpringBoot-居然有-44-种应用启动器

5次阅读

共计 2867 个字符,预计需要花费 8 分钟才能阅读完成。

啥是利用启动器?SpringBoot 集成了 spring 的很多模块,比方 tomcat、redis 等等。你用 SpringBoot 搭建我的项目,只须要在 pom.xml 引入相干的依赖,和在配置文件中简略的配置就能够应用相应模块了。

十分不便,spring boot 集成了哪些启动器呢?

SpringBoot 利用启动器根本的一共有 44 种,具体如下:

1)spring-boot-starter 这是 Spring Boot 的外围启动器,蕴含了主动配置、日志和 YAML。

2)spring-boot-starter-actuator 帮忙监控和治理利用。

3)spring-boot-starter-amqp

通过 spring-rabbit 来反对 AMQP 协定 (Advanced Message Queuing Protocol)。

4)spring-boot-starter-aop 反对面向方面的编程即 AOP,包含 spring-aop 和 AspectJ。

5)spring-boot-starter-artemis 通过 Apache Artemis 反对 JMS 的 API(Java Message Service API)。

6)spring-boot-starter-batch 反对 Spring Batch,包含 HSQLDB 数据库。

7)spring-boot-starter-cache 反对 Spring 的 Cache 形象。

8)spring-boot-starter-cloud-connectors 反对 Spring Cloud Connectors,简化了在像 Cloud Foundry 或 Heroku 这样的云平台上连贯服务。

9)spring-boot-starter-data-elasticsearch 反对 ElasticSearch 搜寻和剖析引擎,包含 spring-data-elasticsearch。

10)spring-boot-starter-data-gemfire 反对 GemFire 分布式数据存储,包含 spring-data-gemfire。

11)spring-boot-starter-data-jpa 反对 JPA(Java Persistence API),包含 spring-data-jpa、spring-orm、hibernate。

12)spring-boot-starter-data-MongoDB 反对 MongoDB 数据,包含 spring-data-mongodb。

13)spring-boot-starter-data-rest 通过 spring-data-rest-webmvc,反对通过 REST 裸露 Spring Data 数据仓库。

14)spring-boot-starter-data-solr 反对 Apache Solr 搜寻平台,包含 spring-data-solr。

15)spring-boot-starter-freemarker 反对 FreeMarker 模板引擎。

16)spring-boot-starter-groovy-templates 反对 Groovy 模板引擎。

17)spring-boot-starter-hateoas 通过 spring-hateoas 反对基于 HATEOAS 的 RESTful Web 服务。

18)spring-boot-starter-hornetq 通过 HornetQ 反对 JMS。

19)spring-boot-starter-integration 反对通用的 spring-integration 模块。

20)spring-boot-starter-jdbc 反对 JDBC 数据库。

21)spring-boot-starter-jersey 反对 Jersey RESTful Web 服务框架。

22)spring-boot-starter-jta-atomikos 通过 Atomikos 反对 JTA 分布式事务处理。

23)spring-boot-starter-jta-bitronix 通过 Bitronix 反对 JTA 分布式事务处理。

24)spring-boot-starter-mail 反对 javax.mail 模块。

25)spring-boot-starter-mobile 反对 spring-mobile。

26)spring-boot-starter-mustache 反对 Mustache 模板引擎。

26)Spring 高级源码全家桶,点击查看

27)spring-boot-starter-Redis 反对 Redis 键值存储数据库,包含 spring-redis。

28)spring-boot-starter-security 反对 spring-security。

29)spring-boot-starter-social-facebook 反对 spring-social-facebook

30)spring-boot-starter-social-linkedin 反对 pring-social-linkedin

31)spring-boot-starter-social-twitter 反对 pring-social-twitter

32)spring-boot-starter-test 反对惯例的测试依赖,包含 JUnit、Hamcrest、Mockito 以及 spring-test 模块。

33)spring-boot-starter-thymeleaf 反对 Thymeleaf 模板引擎,包含与 Spring 的集成。

34)spring-boot-starter-velocity 反对 Velocity 模板引擎。

35)spring-boot-starter-web S 反对全栈式 Web 开发,包含 Tomcat 和 spring-webmvc。

36)spring-boot-starter-websocket 反对 WebSocket 开发。

37)spring-boot-starter-ws 反对 Spring Web Services。

Spring Boot 利用启动器面向生产环境的还有 2 种,具体如下:

38)spring-boot-starter-actuator 减少了面向产品上线相干的性能,比方测量和监控。

39)spring-boot-starter-remote-shell 减少了近程 ssh shell 的反对。

最初,Spring Boot 利用启动器还有一些替换技术的启动器,具体如下:

40)spring-boot-starter-jetty 引入了 Jetty HTTP 引擎 (用于替换 Tomcat)。

41)spring-boot-starter-log4j 反对 Log4J 日志框架。

42)spring-boot-starter-logging 引入了 Spring Boot 默认的日志框架 Logback。

43)spring-boot-starter-tomcat 引入了 Spring Boot 默认的 HTTP 引擎 Tomcat。

44)spring-boot-starter-undertow 引入了 Undertow HTTP 引擎 (用于替换 Tomcat)。

正文完
 0