当前位置: 首页 > 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){<…...

反向工程与模型迁移:打造未来商品详情API的可持续创新体系

在电商行业蓬勃发展的当下&#xff0c;商品详情API作为连接电商平台与开发者、商家及用户的关键纽带&#xff0c;其重要性日益凸显。传统商品详情API主要聚焦于商品基本信息&#xff08;如名称、价格、库存等&#xff09;的获取与展示&#xff0c;已难以满足市场对个性化、智能…...

云启出海,智联未来|阿里云网络「企业出海」系列客户沙龙上海站圆满落地

借阿里云中企出海大会的东风&#xff0c;以**「云启出海&#xff0c;智联未来&#xff5c;打造安全可靠的出海云网络引擎」为主题的阿里云企业出海客户沙龙云网络&安全专场于5.28日下午在上海顺利举办&#xff0c;现场吸引了来自携程、小红书、米哈游、哔哩哔哩、波克城市、…...

Java-41 深入浅出 Spring - 声明式事务的支持 事务配置 XML模式 XML+注解模式

点一下关注吧&#xff01;&#xff01;&#xff01;非常感谢&#xff01;&#xff01;持续更新&#xff01;&#xff01;&#xff01; &#x1f680; AI篇持续更新中&#xff01;&#xff08;长期更新&#xff09; 目前2025年06月05日更新到&#xff1a; AI炼丹日志-28 - Aud…...

招商蛇口 | 执笔CID,启幕低密生活新境

作为中国城市生长的力量&#xff0c;招商蛇口以“美好生活承载者”为使命&#xff0c;深耕全球111座城市&#xff0c;以央企担当匠造时代理想人居。从深圳湾的开拓基因到西安高新CID的战略落子&#xff0c;招商蛇口始终与城市发展同频共振&#xff0c;以建筑诠释对土地与生活的…...

STM32HAL库USART源代码解析及应用

STM32HAL库USART源代码解析 前言STM32CubeIDE配置串口USART和UART的选择使用模式参数设置GPIO配置DMA配置中断配置硬件流控制使能生成代码解析和使用方法串口初始化__UART_HandleTypeDef结构体浅析HAL库代码实际使用方法使用轮询方式发送使用轮询方式接收使用中断方式发送使用中…...

MacOS下Homebrew国内镜像加速指南(2025最新国内镜像加速)

macos brew国内镜像加速方法 brew install 加速formula.jws.json下载慢加速 &#x1f37a; 最新版brew安装慢到怀疑人生&#xff1f;别怕&#xff0c;教你轻松起飞&#xff01; 最近Homebrew更新至最新版&#xff0c;每次执行 brew 命令时都会自动从官方地址 https://formulae.…...

Leetcode33( 搜索旋转排序数组)

题目表述 整数数组 nums 按升序排列&#xff0c;数组中的值 互不相同 。 在传递给函数之前&#xff0c;nums 在预先未知的某个下标 k&#xff08;0 < k < nums.length&#xff09;上进行了 旋转&#xff0c;使数组变为 [nums[k], nums[k1], …, nums[n-1], nums[0], nu…...

ZYNQ学习记录FPGA(一)ZYNQ简介

一、知识准备 1.一些术语,缩写和概念&#xff1a; 1&#xff09;ZYNQ全称&#xff1a;ZYNQ7000 All Pgrammable SoC 2&#xff09;SoC:system on chips(片上系统)&#xff0c;对比集成电路的SoB&#xff08;system on board&#xff09; 3&#xff09;ARM&#xff1a;处理器…...

Linux安全加固:从攻防视角构建系统免疫

Linux安全加固:从攻防视角构建系统免疫 构建坚不可摧的数字堡垒 引言:攻防对抗的新纪元 在日益复杂的网络威胁环境中,Linux系统安全已从被动防御转向主动免疫。2023年全球网络安全报告显示,高级持续性威胁(APT)攻击同比增长65%,平均入侵停留时间缩短至48小时。本章将从…...

AD学习(3)

1 PCB封装元素组成及简单的PCB封装创建 封装的组成部分&#xff1a; &#xff08;1&#xff09;PCB焊盘&#xff1a;表层的铜 &#xff0c;top层的铜 &#xff08;2&#xff09;管脚序号&#xff1a;用来关联原理图中的管脚的序号&#xff0c;原理图的序号需要和PCB封装一一…...