当前位置: 首页 > news >正文

介绍下SpringBoot常用的依赖项

Spring Boot 是一个用于快速开发 Spring 应用程序的框架,它通过自动配置和依赖管理简化了开发过程。以下是一些 Spring Boot 项目中常用的依赖项:

1. Spring Boot Starter Web

  • 作用: 用于构建 Web 应用程序,包括 RESTful 服务。
  • 依赖项: spring-boot-starter-web
  • 包含的库: Spring MVC, Tomcat, Jackson 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId>
</dependency>

2. Spring Boot Starter Data JPA

  • 作用: 用于简化数据库操作,支持 JPA(Java Persistence API)。
  • 依赖项: spring-boot-starter-data-jpa
  • 包含的库: Hibernate, Spring Data JPA 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

3. Spring Boot Starter Thymeleaf

  • 作用: 用于构建服务器端渲染的 Web 应用程序,支持 Thymeleaf 模板引擎。
  • 依赖项: spring-boot-starter-thymeleaf
  • 包含的库: Thymeleaf, Spring Web 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

4. Spring Boot Starter Security

  • 作用: 用于添加安全性功能,如认证和授权。
  • 依赖项: spring-boot-starter-security
  • 包含的库: Spring Security 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-security</artifactId>
</dependency>

5. Spring Boot Starter Test

  • 作用: 用于编写单元测试和集成测试。
  • 依赖项: spring-boot-starter-test
  • 包含的库: JUnit, Mockito, Spring Test 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope>
</dependency>

6. Spring Boot Starter Actuator

  • 作用: 用于监控和管理应用程序。
  • 依赖项: spring-boot-starter-actuator
  • 包含的库: Spring Actuator 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

7. Spring Boot Starter Data MongoDB

  • 作用: 用于与 MongoDB 数据库进行交互。
  • 依赖项: spring-boot-starter-data-mongodb
  • 包含的库: Spring Data MongoDB 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>

8. Spring Boot Starter Cache

  • 作用: 用于简化缓存配置。
  • 依赖项: spring-boot-starter-cache
  • 包含的库: Spring Cache 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-cache</artifactId>
</dependency>

9. Spring Boot Starter Mail

  • 作用: 用于发送电子邮件。
  • 依赖项: spring-boot-starter-mail
  • 包含的库: JavaMail, Spring Mail 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-mail</artifactId>
</dependency>

10. Spring Boot Starter AOP

  • 作用: 用于支持面向切面编程(AOP)。
  • 依赖项: spring-boot-starter-aop
  • 包含的库: Spring AOP, AspectJ 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-aop</artifactId>
</dependency>

11. Spring Boot Starter Batch

  • 作用: 用于批处理应用程序。
  • 依赖项: spring-boot-starter-batch
  • 包含的库: Spring Batch 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-batch</artifactId>
</dependency>

12. Spring Boot Starter AMQP

  • 作用: 用于与 AMQP(高级消息队列协议)消息代理(如 RabbitMQ)进行交互。
  • 依赖项: spring-boot-starter-amqp
  • 包含的库: Spring AMQP, RabbitMQ 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-amqp</artifactId>
</dependency>

13. Spring Boot Starter Data Redis

  • 作用: 用于与 Redis 数据库进行交互。
  • 依赖项: spring-boot-starter-data-redis
  • 包含的库: Spring Data Redis, Lettuce 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

14. Spring Boot Starter WebSocket

  • 作用: 用于构建 WebSocket 应用程序。
  • 依赖项: spring-boot-starter-websocket
  • 包含的库: Spring WebSocket 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-websocket</artifactId>
</dependency>

15. Spring Boot Starter Validation

  • 作用: 用于支持 Bean Validation API。
  • 依赖项: spring-boot-starter-validation
  • 包含的库: Hibernate Validator 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-validation</artifactId>
</dependency>

16. Spring Boot Starter Logging

  • 作用: 用于日志记录。
  • 依赖项: spring-boot-starter-logging
  • 包含的库: Logback, SLF4J 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-logging</artifactId>
</dependency>

17. Spring Boot Starter JSON

  • 作用: 用于处理 JSON 数据。
  • 依赖项: spring-boot-starter-json
  • 包含的库: Jackson 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-json</artifactId>
</dependency>

18. Spring Boot Starter JDBC

  • 作用: 用于简化 JDBC 操作。
  • 依赖项: spring-boot-starter-jdbc
  • 包含的库: Spring JDBC, Tomcat JDBC 连接池 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

19. Spring Boot Starter Freemarker

  • 作用: 用于支持 Freemarker 模板引擎。
  • 依赖项: spring-boot-starter-freemarker
  • 包含的库: Freemarker, Spring Web 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>

20. Spring Boot Starter Mustache

  • 作用: 用于支持 Mustache 模板引擎。
  • 依赖项: spring-boot-starter-mustache
  • 包含的库: Mustache, Spring Web 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-mustache</artifactId>
</dependency>

21. Spring Boot Starter Groovy Templates

  • 作用: 用于支持 Groovy 模板引擎。
  • 依赖项: spring-boot-starter-groovy-templates
  • 包含的库: Groovy Templates, Spring Web 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-groovy-templates</artifactId>
</dependency>

22. Spring Boot Starter Velocity

  • 作用: 用于支持 Velocity 模板引擎。
  • 依赖项: spring-boot-starter-velocity
  • 包含的库: Velocity, Spring Web 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-velocity</artifactId>
</dependency>

23. Spring Boot Starter JOOQ

  • 作用: 用于支持 JOOQ(Java Object Oriented Querying)。
  • 依赖项: spring-boot-starter-jooq
  • 包含的库: JOOQ, Spring JDBC 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jooq</artifactId>
</dependency>

24. Spring Boot Starter Data REST

  • 作用: 用于快速构建 RESTful 服务,基于 Spring Data REST。
  • 依赖项: spring-boot-starter-data-rest
  • 包含的库: Spring Data REST, Spring HATEOAS 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

25. Spring Boot Starter Data Elasticsearch

  • 作用: 用于与 Elasticsearch 进行交互。
  • 依赖项: spring-boot-starter-data-elasticsearch
  • 包含的库: Spring Data Elasticsearch 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>

26. Spring Boot Starter Data Cassandra

  • 作用: 用于与 Cassandra 数据库进行交互。
  • 依赖项: spring-boot-starter-data-cassandra
  • 包含的库: Spring Data Cassandra 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency>

27. Spring Boot Starter Data Couchbase

  • 作用: 用于与 Couchbase 数据库进行交互。
  • 依赖项: spring-boot-starter-data-couchbase
  • 包含的库: Spring Data Couchbase 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-couchbase</artifactId>
</dependency>

28. Spring Boot Starter Data LDAP

  • 作用: 用于与 LDAP 服务器进行交互。
  • 依赖项: spring-boot-starter-data-ldap
  • 包含的库: Spring Data LDAP 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-ldap</artifactId>
</dependency>

29. Spring Boot Starter Data Neo4j

  • 作用: 用于与 Neo4j 图数据库进行交互。
  • 依赖项: spring-boot-starter-data-neo4j
  • 包含的库: Spring Data Neo4j 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>

30. Spring Boot Starter Data Solr

  • 作用: 用于与 Solr 搜索引擎进行交互。
  • 依赖项: spring-boot-starter-data-solr
  • 包含的库: Spring Data Solr 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-solr</artifactId>
</dependency>

31. Spring Boot Starter Data Gemfire

  • 作用: 用于与 Gemfire 数据网格进行交互。
  • 依赖项: spring-boot-starter-data-gemfire
  • 包含的库: Spring Data Gemfire 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-gemfire</artifactId>
</dependency>

32. Spring Boot Starter Data Geode

  • 作用: 用于与 Geode 数据网格进行交互。
  • 依赖项: spring-boot-starter-data-geode
  • 包含的库: Spring Data Geode 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-geode</artifactId>
</dependency>

33. Spring Boot Starter Data REST

  • 作用: 用于快速构建 RESTful 服务,基于 Spring Data REST。
  • 依赖项: spring-boot-starter-data-rest
  • 包含的库: Spring Data REST, Spring HATEOAS 等。
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

相关文章:

介绍下SpringBoot常用的依赖项

Spring Boot 是一个用于快速开发 Spring 应用程序的框架&#xff0c;它通过自动配置和依赖管理简化了开发过程。以下是一些 Spring Boot 项目中常用的依赖项&#xff1a; 1. Spring Boot Starter Web 作用: 用于构建 Web 应用程序&#xff0c;包括 RESTful 服务。依赖项: spr…...

深度解析策略模式:从理论到企业级实战应用

一、策略模式的本质&#xff1a;面向接口的算法工厂 策略模式&#xff08;Strategy Pattern&#xff09;是行为型设计模式的典型代表&#xff0c;其核心思想是将算法族抽象为独立对象&#xff0c;使其能够相互替换。这种模式完美体现了以下面向对象设计原则&#xff1a; 开闭原…...

【Linux】深入理解linux权限

&#x1f31f;&#x1f31f;作者主页&#xff1a;ephemerals__ &#x1f31f;&#x1f31f;所属专栏&#xff1a;Linux 目录 前言 一、权限是什么 二、用户和身份角色 三、文件属性 1. 文件属性表示 2. 文件类型 3. 文件的权限属性 四、修改文件的权限属性和角色 1. …...

C++STL(六)——list模拟

目录 本次所需实现的三个类一、结点类的模拟实现构造函数 二、迭代器类的模拟实现为什么有迭代器类迭代器类的模板参数说明构造函数运算符的重载- -运算符的重载和!运算符的重载*运算符的重载->运算符的重载引入模板第二个和第三个参数 三、list的模拟实现3.1 默认成员函数构…...

网络安全与AI:数字经济发展双引擎

在2025年年初&#xff0c;一场科技攻防战引发了全球关注。国产人工智能DeepSeek的爆火&#xff0c;伴随着大规模的网络攻击事件&#xff0c;将网络安全的重要性推上了风口浪尖。 在此背景下&#xff0c;我们计划探讨网络安全与人工智能如何为数字经济发展提供强大动力。网络安…...

WPS接入DeepSeek模型

1.wps 下载安装 WPS-支持多人在线协作编辑Word、Excel和PPT文档_WPS官方网站 &#xff08;最好是安装最新的wps&#xff09; 2.offieceAi工具下载安装 软件下载 | OfficeAI助手 下载后安装下载下来的两个工具。安装路径可以自行修改 3.打开WPS,点击文件-》 选项-》信任中心 勾…...

深度学习之神经网络框架搭建及模型优化

神经网络框架搭建及模型优化 目录 神经网络框架搭建及模型优化1 数据及配置1.1 配置1.2 数据1.3 函数导入1.4 数据函数1.5 数据打包 2 神经网络框架搭建2.1 框架确认2.2 函数搭建2.3 框架上传 3 模型优化3.1 函数理解3.2 训练模型和测试模型代码 4 最终代码测试4.1 SGD优化算法…...

采用分步式无线控制架构实现水池液位自动化管理

以下是基于巨控GRM241Q-4D4I4QHE模块的完整技术方案&#xff0c;采用分步式无线控制架构实现水池液位自动化管理&#xff1a; 一、系统架构设计 硬件部署 山顶单元 GRM241Q模块&#xff08;带4G功能&#xff09; 液位计&#xff08;4-20mA&#xff09; 功能&#xff1a;实时采…...

OpenEuler学习笔记(二十三):在OpenEuler上部署开源MES系统

在OpenEuler上部署小企业开源MES&#xff08;制造执行系统&#xff0c;Manufacturing Execution System&#xff09;是一个非常有价值的项目&#xff0c;可以帮助企业实现生产过程的数字化管理。以下是基于开源MES系统&#xff08;如 Odoo MES 或 OpenMES&#xff09;的部署步骤…...

SpringSecurity:授权服务器与客户端应用(入门案例)

文章目录 一、需求概述二、基本授权登录功能实现1、授权服务器开发2、客户端开发3、功能测试 三、自定义授权服务器登录页1、授权服务器开发2、功能测试 四、自定义授权服务器授权页1、授权服务器开发2、功能测试 五、客户端信息保存数据库1、授权服务器开发2、功能测试 一、需…...

没用的文章又➕1

次次登陆GitHub都让我抓心挠肝&#xff0c;用了热度最高的法子也不抵事儿。谁说github上全是大神了&#xff0c;也要有我这样的小菜鸟。下面是我的失败记录… 查询目标网站的DNS 在whois上输入目标网站github.com&#xff0c;在查询结果当中选取任意一个DNS将地址和名称添加在…...

BiGRU双向门控循环单元多变量多步预测,光伏功率预测(Matlab完整源码和数据)

代码地址&#xff1a;BiGRU双向门控循环单元多变量多步预测&#xff0c;光伏功率预测&#xff08;Matlab完整源码和数据) BiGRU双向门控循环单元多变量多步预测&#xff0c;光伏功率预测 一、引言 1.1、研究背景和意义 随着全球对可再生能源需求的不断增长&#xff0c;光伏…...

谷歌浏览器多开指南:如何完成独立IP隔离?

对于跨境电商来说&#xff0c;在进行社交媒体营销、广告投放等业务活动时&#xff0c;往往需要同时登录多个账号来提高运营效率和提升营销效果。然而&#xff0c;如果这些账号共享相同的 IP 地址&#xff0c;很容易被平台检测为关联账号&#xff0c;进而触发安全验证甚至封禁。…...

Django开发入门 – 3.用Django创建一个Web项目

Django开发入门 – 3.用Django创建一个Web项目 Build A Web Based Project With Django By JacksonML 本文简要介绍如何利用最新版Python 3.13.2来搭建Django环境&#xff0c;以及创建第一个Django Web应用项目&#xff0c;并能够运行Django Web服务器。 创建该Django项目需…...

【Java】多线程和高并发编程(三):锁(下)深入ReentrantReadWriteLock

文章目录 4、深入ReentrantReadWriteLock4.1 为什么要出现读写锁4.2 读写锁的实现原理4.3 写锁分析4.3.1 写锁加锁流程概述4.3.2 写锁加锁源码分析4.3.3 写锁释放锁流程概述&释放锁源码 4.4 读锁分析4.4.1 读锁加锁流程概述4.4.1.1 基础读锁流程4.4.1.2 读锁重入流程4.4.1.…...

讲解ES6中的变量和对象的解构赋值

在 ES6 中&#xff0c;解构赋值是一种非常方便的语法&#xff0c;它使得从数组或对象中提取值变得更加简洁和直观。解构赋值支持变量赋值&#xff0c;可以通过单独提取数组或对象的元素来赋值给变量。 下面我将分别讲解 数组解构 和 对象解构 的基本用法和一些高级特性。 1. …...

DeepSeek Coder + IDEA 辅助开发工具

开发者工具 我之前用的是Codegeex4模型&#xff0c;现在写一款DeepSeek Coder 本地模型 DeepSeek为什么火&#xff0c;我在网上看到一个段子下棋DeepSeek用兵法赢了ChatGpt&#xff0c;而没有用技术赢&#xff0c;这就是AI的思维推理&#xff0c;深入理解孙子兵法&#xff0c…...

云计算——AWS Solutions Architect – Associate(saa)4.安全组和NACL

安全组一充当虚拟防火墙对于关联实例&#xff0c;在实例级别控制入站和出站流量。 网络访问控制列表(NACL)一充当防火墙关联子网&#xff0c;在子网级别控制入站和出站流量。 在专有网络中&#xff0c;安全组和网络ACL(NACL)一起帮助构建分层网络防御。 安全组在实例级别操作…...

动量+均线组合策略关键点

动量均线组合策略关键点&#xff1a; 趋势确认&#xff1a; MA系统判断主趋势方向动量指标判断趋势强度 入场条件&#xff1a; 价格站上重要均线(如20日线)动量指标向上并保持高位短期均线上穿长期均线 出场条件&#xff1a; 价格跌破均线系统动量指标见顶回落短期均线下…...

Blazor-<select>

今天我们来说说<select>标签的用法&#xff0c;我们还是从一个示例代码开始 page "/demoPage" rendermode InteractiveAuto inject ILogger<InjectPage> logger; <h3>demoPage</h3> <select multiple>foreach (var item in list){<…...

C++_核心编程_多态案例二-制作饮品

#include <iostream> #include <string> using namespace std;/*制作饮品的大致流程为&#xff1a;煮水 - 冲泡 - 倒入杯中 - 加入辅料 利用多态技术实现本案例&#xff0c;提供抽象制作饮品基类&#xff0c;提供子类制作咖啡和茶叶*//*基类*/ class AbstractDr…...

SkyWalking 10.2.0 SWCK 配置过程

SkyWalking 10.2.0 & SWCK 配置过程 skywalking oap-server & ui 使用Docker安装在K8S集群以外&#xff0c;K8S集群中的微服务使用initContainer按命名空间将skywalking-java-agent注入到业务容器中。 SWCK有整套的解决方案&#xff0c;全安装在K8S群集中。 具体可参…...

测试markdown--肇兴

day1&#xff1a; 1、去程&#xff1a;7:04 --11:32高铁 高铁右转上售票大厅2楼&#xff0c;穿过候车厅下一楼&#xff0c;上大巴车 &#xffe5;10/人 **2、到达&#xff1a;**12点多到达寨子&#xff0c;买门票&#xff0c;美团/抖音&#xff1a;&#xffe5;78人 3、中饭&a…...

多模态商品数据接口:融合图像、语音与文字的下一代商品详情体验

一、多模态商品数据接口的技术架构 &#xff08;一&#xff09;多模态数据融合引擎 跨模态语义对齐 通过Transformer架构实现图像、语音、文字的语义关联。例如&#xff0c;当用户上传一张“蓝色连衣裙”的图片时&#xff0c;接口可自动提取图像中的颜色&#xff08;RGB值&…...

el-switch文字内置

el-switch文字内置 效果 vue <div style"color:#ffffff;font-size:14px;float:left;margin-bottom:5px;margin-right:5px;">自动加载</div> <el-switch v-model"value" active-color"#3E99FB" inactive-color"#DCDFE6"…...

跨链模式:多链互操作架构与性能扩展方案

跨链模式&#xff1a;多链互操作架构与性能扩展方案 ——构建下一代区块链互联网的技术基石 一、跨链架构的核心范式演进 1. 分层协议栈&#xff1a;模块化解耦设计 现代跨链系统采用分层协议栈实现灵活扩展&#xff08;H2Cross架构&#xff09;&#xff1a; 适配层&#xf…...

什么?连接服务器也能可视化显示界面?:基于X11 Forwarding + CentOS + MobaXterm实战指南

文章目录 什么是X11?环境准备实战步骤1️⃣ 服务器端配置(CentOS)2️⃣ 客户端配置(MobaXterm)3️⃣ 验证X11 Forwarding4️⃣ 运行自定义GUI程序(Python示例)5️⃣ 成功效果![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/55aefaea8a9f477e86d065227851fe3d.pn…...

管理学院权限管理系统开发总结

文章目录 &#x1f393; 管理学院权限管理系统开发总结 - 现代化Web应用实践之路&#x1f4dd; 项目概述&#x1f3d7;️ 技术架构设计后端技术栈前端技术栈 &#x1f4a1; 核心功能特性1. 用户管理模块2. 权限管理系统3. 统计报表功能4. 用户体验优化 &#x1f5c4;️ 数据库设…...

push [特殊字符] present

push &#x1f19a; present 前言present和dismiss特点代码演示 push和pop特点代码演示 前言 在 iOS 开发中&#xff0c;push 和 present 是两种不同的视图控制器切换方式&#xff0c;它们有着显著的区别。 present和dismiss 特点 在当前控制器上方新建视图层级需要手动调用…...

怎么让Comfyui导出的图像不包含工作流信息,

为了数据安全&#xff0c;让Comfyui导出的图像不包含工作流信息&#xff0c;导出的图像就不会拖到comfyui中加载出来工作流。 ComfyUI的目录下node.py 直接移除 pnginfo&#xff08;推荐&#xff09;​​ 在 save_images 方法中&#xff0c;​​删除或注释掉所有与 metadata …...