SpringBoot - Starters
SpringBoot - Starters
- 1、官方文档
1、官方文档
官方文档:https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.build-systems.starters
Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sample code and copy-paste loads of dependency descriptors. For example, if you want to get started using Spring and JPA for database access, include the spring-boot-starter-data-jpa dependency in your project.
The starters contain a lot of the dependencies that you need to get a project up and running quickly and with a consistent, supported set of managed transitive dependencies.
What is in a name
All official starters follow a similar naming pattern; spring-boot-starter-*, where * is a particular type of application. This naming structure is intended to help when you need to find a starter. The Maven integration in many IDEs lets you search dependencies by name. For example, with the appropriate Eclipse or Spring Tools plugin installed, you can press ctrl-space in the POM editor and type “spring-boot-starter” for a complete list.
As explained in the “Creating Your Own Starter” section, third party starters should not start with spring-boot, as it is reserved for official Spring Boot artifacts. Rather, a third-party starter typically starts with the name of the project. For example, a third-party starter project called thirdpartyproject would typically be named thirdpartyproject-spring-boot-starter.
The following application starters are provided by Spring Boot under the org.springframework.boot group:
Table 1. Spring Boot application starters
Name | Description |
---|---|
spring-boot-starter | Core starter, including auto-configuration support, logging and YAML |
spring-boot-starter-activemq | Starter for JMS messaging using Apache ActiveMQ |
spring-boot-starter-amqp | Starter for using Spring AMQP and Rabbit MQ |
spring-boot-starter-aop | Starter for aspect-oriented programming with Spring AOP and AspectJ |
spring-boot-starter-artemis | Starter for JMS messaging using Apache Artemis |
spring-boot-starter-batch | Starter for using Spring Batch |
spring-boot-starter-cache | Starter for using Spring Framework’s caching support |
spring-boot-starter-data-cassandra | Starter for using Cassandra distributed database and Spring Data Cassandra |
spring-boot-starter-data-cassandra-reactive | Starter for using Cassandra distributed database and Spring Data Cassandra Reactive |
spring-boot-starter-data-couchbase | Starter for using Couchbase document-oriented database and Spring Data Couchbase |
spring-boot-starter-data-couchbase-reactive | Starter for using Couchbase document-oriented database and Spring Data Couchbase Reactive |
spring-boot-starter-data-elasticsearch | Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch |
spring-boot-starter-data-jdbc | Starter for using Spring Data JDBC |
spring-boot-starter-data-jpa | Starter for using Spring Data JPA with Hibernate |
spring-boot-starter-data-ldap | Starter for using Spring Data LDAP |
spring-boot-starter-data-mongodb | Starter for using MongoDB document-oriented database and Spring Data MongoDB |
spring-boot-starter-data-mongodb-reactive | Starter for using MongoDB document-oriented database and Spring Data MongoDB Reactive |
spring-boot-starter-data-neo4j | Starter for using Neo4j graph database and Spring Data Neo4j |
spring-boot-starter-data-r2dbc | Starter for using Spring Data R2DBC |
spring-boot-starter-data-redis | Starter for using Redis key-value data store with Spring Data Redis and the Lettuce client |
spring-boot-starter-data-redis-reactive | Starter for using Redis key-value data store with Spring Data Redis reactive and the Lettuce client |
spring-boot-starter-data-rest | Starter for exposing Spring Data repositories over REST using Spring Data REST |
spring-boot-starter-freemarker | Starter for building MVC web applications using FreeMarker views |
spring-boot-starter-graphql | Starter for building GraphQL applications with Spring GraphQL |
spring-boot-starter-groovy-templates | Starter for building MVC web applications using Groovy Templates views |
spring-boot-starter-hateoas | Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS |
spring-boot-starter-integration | Starter for using Spring Integration |
spring-boot-starter-jdbc | Starter for using JDBC with the HikariCP connection pool |
spring-boot-starter-jersey | Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web |
spring-boot-starter-jooq | Starter for using jOOQ to access SQL databases with JDBC. An alternative to spring-boot-starter-data-jpa or spring-boot-starter-jdbc |
spring-boot-starter-json | Starter for reading and writing json |
spring-boot-starter-jta-atomikos | Starter for JTA transactions using Atomikos |
spring-boot-starter-mail | Starter for using Java Mail and Spring Framework’s email sending support |
spring-boot-starter-mustache | Starter for building web applications using Mustache views |
spring-boot-starter-oauth2-client | Starter for using Spring Security’s OAuth2/OpenID Connect client features |
spring-boot-starter-oauth2-resource-server | Starter for using Spring Security’s OAuth2 resource server features |
spring-boot-starter-quartz | Starter for using the Quartz scheduler |
spring-boot-starter-rsocket | Starter for building RSocket clients and servers |
spring-boot-starter-security | Starter for using Spring Security |
spring-boot-starter-test | Starter for testing Spring Boot applications with libraries including JUnit Jupiter, Hamcrest and Mockito |
spring-boot-starter-thymeleaf | Starter for building MVC web applications using Thymeleaf views |
spring-boot-starter-validation | Starter for using Java Bean Validation with Hibernate Validator |
spring-boot-starter-web | Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container |
spring-boot-starter-web-services | Starter for using Spring Web Services |
spring-boot-starter-webflux | Starter for building WebFlux applications using Spring Framework’s Reactive Web support |
spring-boot-starter-websocket | Starter for building WebSocket applications using Spring Framework’s WebSocket support |
In addition to the application starters, the following starters can be used to add production ready features:
Table 2. Spring Boot production starters
Name | Description |
---|---|
spring-boot-starter-actuator | Starter for using Spring Boot’s Actuator which provides production ready features to help you monitor and manage your application |
Finally, Spring Boot also includes the following starters that can be used if you want to exclude or swap specific technical facets:
Table 3. Spring Boot technical starters
Name | Description |
---|---|
spring-boot-starter-jetty | Starter for using Jetty as the embedded servlet container. An alternative to spring-boot-starter-tomcat |
spring-boot-starter-log4j2 | Starter for using Log4j2 for logging. An alternative to spring-boot-starter-logging |
spring-boot-starter-logging | Starter for logging using Logback. Default logging starter |
spring-boot-starter-reactor-netty | Starter for using Reactor Netty as the embedded reactive HTTP server. |
spring-boot-starter-tomcat | Starter for using Tomcat as the embedded servlet container. Default servlet container starter used by spring-boot-starter-web |
spring-boot-starter-undertow | Starter for using Undertow as the embedded servlet container. An alternative to spring-boot-starter-tomcat |
To learn how to swap technical facets, please see the how-to documentation for swapping web server and logging system.
For a list of additional community contributed starters, see the README file in the spring-boot-starters module on GitHub.
SpringBoot - Starters相关推荐
- springboot starters包
springboot starters包 starts 是方便的依赖描述符集合,你可以将其包含在应用程序中.你可以一个一站式的spring商店和相关技术.而无需遍历示例代码和依赖描述符的复制黏贴负 ...
- 你是如何理解SpringBoot Starters的?
你是如何理解SpringBoot Starters的? SpringBoot官方对我们平时开发过程中涉及到的场景(数据访问,Web开发)封装成一个个的启动器,我们只需要在项目中引入某个场景的启动器,则 ...
- SpringBoot Starters
约定大于配置(约定优于配置). Starters可以理解为启动器,它包含了一系列可以集成到应用里面的依赖包. Starter命名规则:自带的以spring-boot开头. 常用的Starter: sp ...
- springBoot Starters
简介 在启动任何项目(无论是小型项目还是企业级应用程序)之前,其中关键的方面之一是依赖管理,手动为小型应用程序执行依赖管理并不是一项困难的工作,但对于复杂的应用程序,手动管理所有项目依赖并不理想,容易 ...
- JAVA社招面试问题总结(一年工作经验)
以下面试问题很多是我在最近面试过程中遇到的: 一年工作经验小白,请大佬指点 1.Java常考知识点 java的基本数据类型与包装类: final修饰变量类方法: String为什么是不可变的,以及ne ...
- springboot的starters原理
问题引出:如何简化传统spring项目的配置? 解决方式: spring framwor团队为了解决上述问题,生产出了springboot框架 引发思考: 1.springboot 如何简化了[web ...
- 学习总结:springboot 的启动类Starters的理解
目录 一.Starters是什么? 二.Starters命名 三.Starters分类 1. Spring Boot应用类启动器 2. Spring Boot生产启动器 3. Spring Boot技 ...
- IDEA实现SpringBoot自定义Starters
尝试多次,总是会有一个坑,Maven安装Starters成功,可以在External Libraries看到打包好的jar,也能打开里面源码文件,但是没法在项目中引用的情况. 最后参考https:// ...
- SpringBoot如何自定义starters
一.starter :场景启动器 SpringBoot将每个场景都抽取成一个start,通过引入starts,就能使用到相应的场景功能.即使是这样,SpringBoot也不能囊括开发中所有的场景,我们 ...
最新文章
- Kubernetes集群部署(yum部署)
- 光伏电价断崖式下跌 企业遭遇成长烦恼
- jquery 鼠标经过显示 信息小卡片
- 两机五节点电力系统的潮流仿真计算_南科大杨再跃课题组在电力系统、机器学习等领域取得重要研究成果...
- 机器学习-K近邻项目实战
- JS数据类型 构造函数 原型链
- 知识蒸馏 | 综述:蒸馏机制
- Android Gradle配置构建
- ASUS RT-N16 刷番茄Tomato
- 程序员编程中遇到的那些灵异事件,胆小误入!
- 什么是大型机和小型机
- 如何查询网络出口IP
- 城市系统应用其一-表征城市交通模式
- 每次运行项目都会出现这个reload script assemblies
- 普里姆(Prim)算法 Java实现(最小生成树)
- 用牛顿迭代法求方程的根matlab,牛顿迭代法求方程根的MATLAB程序
- CentOS 7安装图形化界面
- MOOS例程HelloWorld-详细注释
- RISC-V MCU 隧道微振动监测系统
- 个性化推荐十大挑战[科普+完整版本]-来自周涛科学网博客
热门文章
- HTML——js设置计时器和清除计时器的方法
- 22款奔驰E260L加装23P驾驶辅助系统,诸多组件来帮忙
- Introduction to 3D Game Programming with DirectX 12 学习笔记之 --- 第十三章:计算着色器(The Compute Shader)...
- 面试题java存储过程_java中级面试题的考点
- 8、Java网络编程——MINA框架
- mysql 多租户设计_[转载]数据层的多租户浅谈(SAAS多租户数据库设计)
- linux服务器上测试网速
- Cache configuration does not exist ‘ServletContext resource [/ehcache.xml]‘
- uniapp 发行 原生APP本地打包 安卓APK(最全的步骤)
- 使用Bypass_AV-main进行免杀木马