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

【JVM】- 内存结构

引言 JVM&#xff1a;Java Virtual Machine 定义&#xff1a;Java虚拟机&#xff0c;Java二进制字节码的运行环境好处&#xff1a; 一次编写&#xff0c;到处运行自动内存管理&#xff0c;垃圾回收的功能数组下标越界检查&#xff08;会抛异常&#xff0c;不会覆盖到其他代码…...

Vue2 第一节_Vue2上手_插值表达式{{}}_访问数据和修改数据_Vue开发者工具

文章目录 1.Vue2上手-如何创建一个Vue实例,进行初始化渲染2. 插值表达式{{}}3. 访问数据和修改数据4. vue响应式5. Vue开发者工具--方便调试 1.Vue2上手-如何创建一个Vue实例,进行初始化渲染 准备容器引包创建Vue实例 new Vue()指定配置项 ->渲染数据 准备一个容器,例如: …...

云原生玩法三问:构建自定义开发环境

云原生玩法三问&#xff1a;构建自定义开发环境 引言 临时运维一个古董项目&#xff0c;无文档&#xff0c;无环境&#xff0c;无交接人&#xff0c;俗称三无。 运行设备的环境老&#xff0c;本地环境版本高&#xff0c;ssh不过去。正好最近对 腾讯出品的云原生 cnb 感兴趣&…...

Java毕业设计:WML信息查询与后端信息发布系统开发

JAVAWML信息查询与后端信息发布系统实现 一、系统概述 本系统基于Java和WML(无线标记语言)技术开发&#xff0c;实现了移动设备上的信息查询与后端信息发布功能。系统采用B/S架构&#xff0c;服务器端使用Java Servlet处理请求&#xff0c;数据库采用MySQL存储信息&#xff0…...

搭建DNS域名解析服务器(正向解析资源文件)

正向解析资源文件 1&#xff09;准备工作 服务端及客户端都关闭安全软件 [rootlocalhost ~]# systemctl stop firewalld [rootlocalhost ~]# setenforce 0 2&#xff09;服务端安装软件&#xff1a;bind 1.配置yum源 [rootlocalhost ~]# cat /etc/yum.repos.d/base.repo [Base…...

区块链技术概述

区块链技术是一种去中心化、分布式账本技术&#xff0c;通过密码学、共识机制和智能合约等核心组件&#xff0c;实现数据不可篡改、透明可追溯的系统。 一、核心技术 1. 去中心化 特点&#xff1a;数据存储在网络中的多个节点&#xff08;计算机&#xff09;&#xff0c;而非…...

深入解析光敏传感技术:嵌入式仿真平台如何重塑电子工程教学

一、光敏传感技术的物理本质与系统级实现挑战 光敏电阻作为经典的光电传感器件&#xff0c;其工作原理根植于半导体材料的光电导效应。当入射光子能量超过材料带隙宽度时&#xff0c;价带电子受激发跃迁至导带&#xff0c;形成电子-空穴对&#xff0c;导致材料电导率显著提升。…...

C++ 类基础:封装、继承、多态与多线程模板实现

前言 C 是一门强大的面向对象编程语言&#xff0c;而类&#xff08;Class&#xff09;作为其核心特性之一&#xff0c;是理解和使用 C 的关键。本文将深入探讨 C 类的基本特性&#xff0c;包括封装、继承和多态&#xff0c;同时讨论类中的权限控制&#xff0c;并展示如何使用类…...

【题解-洛谷】P10480 可达性统计

题目&#xff1a;P10480 可达性统计 题目描述 给定一张 N N N 个点 M M M 条边的有向无环图&#xff0c;分别统计从每个点出发能够到达的点的数量。 输入格式 第一行两个整数 N , M N,M N,M&#xff0c;接下来 M M M 行每行两个整数 x , y x,y x,y&#xff0c;表示从 …...

【Qt】控件 QWidget

控件 QWidget 一. 控件概述二. QWidget 的核心属性可用状态&#xff1a;enabled几何&#xff1a;geometrywindows frame 窗口框架的影响 窗口标题&#xff1a;windowTitle窗口图标&#xff1a;windowIconqrc 机制 窗口不透明度&#xff1a;windowOpacity光标&#xff1a;cursor…...