1、SpringBoot Starter讲解
简介:介绍什么是SpringBoot Starter和主要作用
1、官网地址:https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/reference/htmlsingle/#using-boot-starter
2、starter主要简化依赖用的
spring-boot-starter-web ->里面包含多种依赖
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
一开始学引入的依赖spring-boot-starter-web,这样就可以把我们的web启动起来。

starter是spring里面jar包的集合。我们去看下starter-web里面的依赖。



项目里面依赖了很多的包


我们只需要引入starter-web这一个jar包 相当于就引入这么多的依赖。就不用再单独把这些依赖在项目里面单独引用‘
官网的说明

官方提供了很多starter开头的组件。

例如我们要用activeMQ,我们只要引入这一个就会把相关的依赖都引入进来。方便我们的开发

常用的’



定时任务

安全包

模板引擎


还可以自定义自己的starter。可以参考官方文档

原文:https://www.cnblogs.com/wangjunwei/p/11421399.html