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

介绍下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…...

解决 keep-alive 缓存组件中定时器干扰问题

当使用 keep-alive 缓存组件时&#xff0c;组件中的定时器可能会在组件被缓存后继续运行&#xff0c;从而干扰其他组件的逻辑。为了避免这种情况&#xff0c;可以通过以下方法解决&#xff1a; 1. 在组件的 deactivated 钩子中清理定时器 keep-alive 为缓存的组件提供了 acti…...

PostgreSQL插件-pg_stat_statements-安装和使用

文章目录 插件介绍插件安装1.修改配置文件postgresql.conf2.插件相关参数参数默认值参数说明特别注意pg_stat_statements.max参数设置太小日志会有警告 插件使用1.创建插件2.使用插件3.重置数据4.删除插件 可能会出现的问题1.没有编译安装插件2.没有配置shared_preload_librari…...

flutter安卓打包签名

flutter安卓打包签名 1.创建签名文件 keytool -genkeypair -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-key-aliaskeytool 是一个用于管理密钥和证书的命令行工具&#xff0c;通常与 Java 开发工具包 (JDK) 一起使用。my-release-…...

从Word里面用VBA调用NVIDIA的免费DeepSeekR1

看上去能用而已。 选中的文字作为输入&#xff0c;运行对应的宏即可&#xff1b;会先MSGBOX提示一下&#xff0c;然后相关内容追加到word文档中。 需要自己注册生成好用的apikey Option ExplicitSub DeepSeek()Dim selectedText As StringDim apiKey As StringDim response A…...

JavaScript 中的防抖和节流,它们的区别是什么,以及如何实现?

在前端开发中&#xff0c;防抖&#xff08;Debounce&#xff09;和节流&#xff08;Throttle&#xff09;是两种常用的优化高频率事件处理的技术。 它们能够有效减少事件处理函数的执行次数&#xff0c;从而提升页面性能和用户体验。 下面将详细解释这两种技术的概念、区别、…...

【Kubernetes的SpringCloud最佳实践】Spring Cloud netflix 能否被K8s资源完全替代?

在部署Spring Cloud微服务到Kubernetes&#xff08;K8s&#xff09;时&#xff0c; Spring Cloud netflix 是否需要完全替代&#xff1f;或者可以部分替代&#xff0c;结合使用&#xff1f; 例如&#xff0c;服务发现和负载均衡可以交给K8s处理&#xff0c; 但某些功能如API网关…...

MATLAB中extract 函数用法

目录 语法 说明 示例 从地址中提取邮政编码 提取在数值位置处的字符 extract函数的功能是从字符串中提取子字符串。 语法 newStr extract(str,pat) newStr extract(str,pos) 说明 newStr extract(str,pat) 返回 str 中与 pat 指定的模式匹配的任何子字符串。 如果 s…...

DeepSeek-V3:开源多模态大模型的突破与未来

目录 引言 一、DeepSeek-V3 的概述 1.1 什么是 DeepSeek-V3&#xff1f; 1.2 DeepSeek-V3 的定位 二、DeepSeek-V3 的核心特性 2.1 多模态能力 2.2 开源与可扩展性 2.3 高性能与高效训练 2.4 多语言支持 2.5 安全与伦理 三、DeepSeek-V3 的技术架构 3.1 模型架构 3…...

C语言学习笔记:子函数的调用实现各个位的累加和

在C语言程序学习之初&#xff0c;我们都会学习如何打印 hello world&#xff0c;在学习时我们知道了int main&#xff08;&#xff09;是主函数&#xff0c;程序从main函数开始执行&#xff0c;这是流程控制的一部分内容。在主函数中我们想要实现一些功能&#xff0c;比如求各个…...

docker安装ollama显示超时或失败

正常安装 1、拉取ollma镜像 docker pull ollama/ollama or docker pull docker.1panel.live/ollama/ollama2、运行ollma镜像 docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama3、运行指定大模型:模型仓库参考网站: library (ollama.com…...

grafana面板配置opentsdb

新增面板&#xff1a; 这里add-panel: 如果不是想新增面板而是想新增一行条目&#xff0c;则点击convert to row: 在新增的面板这里可以看到选择数据源 Aggregator&#xff1a;聚合条件&#xff0c;区分下第一行和第二行的aggregator&#xff0c;第一个是对指标值的聚合&…...

iOS AES/CBC/CTR加解密以及AES-CMAC

感觉iOS自带的CryptoKit不好用&#xff0c;有个第三方库CryptoSwift还不错&#xff0c;好巧不巧&#xff0c;清理过Xcode缓存后死活下载不下来&#xff0c;当然也可以自己编译个Framework&#xff0c;但是偏偏不想用第三方库了&#xff0c;于是研究了一下&#xff0c;自带的Com…...

使用Jenkins实现鸿蒙HAR应用的自动化构建打包

使用Jenkins实现鸿蒙HAR应用的自动化构建打包 在软件开发领域&#xff0c;自动化构建是提高开发效率和确保代码质量的重要手段。特别是在鸿蒙&#xff08;OpenHarmony&#xff09;应用开发中&#xff0c;自动化构建更是不可或缺。本文将详细介绍如何使用Jenkins命令行工具实现…...

2025年02月10日Github流行趋势

项目名称&#xff1a;dify 项目地址url&#xff1a;https://github.com/langgenius/dify项目语言&#xff1a;TypeScript历史star数&#xff1a;64707今日star数&#xff1a;376项目维护者&#xff1a;takatost, crazywoola, laipz8200, iamjoel, JohnJyong项目简介&#xff1a…...

Ansible简单介绍及用法

一、简介 Ansible是一个简单的自动化运维管理工具&#xff0c;基于Python语言实现&#xff0c;由Paramiko和PyYAML两个关键模块构建&#xff0c;可用于自动化部署应用、配置、编排task(持续交付、无宕机更新等)。主版本大概每2个月发布一次。 Ansible与Saltstack最大的区别是…...

渗透利器工具:Burp Suite 联动 XRAY 图形化工具.(主动扫描+被动扫描)

Burp Suite 联动 XRAY 图形化工具.&#xff08;主动扫描被动扫描&#xff09; Burp Suite 和 Xray 联合使用&#xff0c;能够将 Burp 的强大流量拦截与修改功能&#xff0c;与 Xray 的高效漏洞检测能力相结合&#xff0c;实现更全面、高效的网络安全测试&#xff0c;同时提升漏…...

HTML-day1(学习自用)

目录 一、HTML介绍 二、常用的标签 1、各级标题&#xff08;h1-h6&#xff09; 2、段落标签&#xff08;p&#xff09; 3、文本容器&#xff08;span&#xff09; 4、图片标签&#xff08;img&#xff09; 5、超链接标签&#xff08;a&#xff09; 6、表格&#xff08;t…...

Vue07

一、Vuex 概述 目标&#xff1a;明确Vuex是什么&#xff0c;应用场景以及优势 1.是什么 Vuex 是一个 Vue 的 状态管理工具&#xff0c;状态就是数据。 大白话&#xff1a;Vuex 是一个插件&#xff0c;可以管理 Vue 通用的数据 (多组件共享的数据)。例如&#xff1a;购物车数…...

Godot开发框架探索#2

前言 距离上次发文又又又隔了很长一段时间。主要原因还是因为思绪在徘徊&#xff0c;最近纠结的点有以下几个&#xff1a;1.渴求一个稳定的Godot开发框架&#xff1b;2.要不要使用更轻量的开发框架&#xff0c;或者直接写引擎&#xff1b; 3.对自己想做的游戏品类拿不定主意。…...

deepseek实现私有知识库

前言 之前写了如何本地部署deepseek&#xff0c;已经可以私有化问答了&#xff0c;本地搭建deepseek实操&#xff08;ollama搭建&#xff0c;docker管理&#xff0c;open-webui使用&#xff09; 其中我觉得最厉害的还是这个模型蒸馏&#xff0c;使我们可以用很低的代价使用大模…...

2.10学习总结

Dijkstra算法求取最短路径 注&#xff1a;迪杰斯特拉算法并不能直接生成最短路径&#xff0c;但是算法将最短路径信息保存在dist数组和path数组中。 dist数组中保存的是起始点到数组下标对应顶点的路径长度&#xff08;累加的结果&#xff09;path数组中保存的是对应path数组…...

【探索未来科技】2025年国际学术会议前瞻

【探索未来科技】2025年国际学术会议前瞻 【探索未来科技】2025年国际学术会议前瞻 文章目录 【探索未来科技】2025年国际学术会议前瞻前言1. 第四届电子信息工程、大数据与计算机技术国际学术会议&#xff08; EIBDCT 2025&#xff09;代码示例&#xff1a;机器学习中的线性回…...

pytest.fixture

pytest.fixture 是 pytest 测试框架中的一个非常强大的功能,它允许你在测试函数运行前后执行一些设置或清理代码。以下是关于 pytest.fixture 的详细介绍: 一、定义与用途 pytest.fixture 是一个装饰器,用于标记一个函数为 fixture。Fixture 函数中的代码可以在测试函数运…...

大模型基本原理(四)——如何武装ChatGPT

传统的LLM存在几个短板&#xff1a;编造事实、计算不准确、数据过时等&#xff0c;为了应对这几个问题&#xff0c;可以借助一些外部工具或数据把AI武装起来。 实现这一思路的框架包括RAG、PAL、ReAct。 1、RAG&#xff08;检索增强生成&#xff09; LLM生成的内容会受到训练…...

开发完的小程序如何分包

好几次了&#xff0c;终于想起来写个笔记记一下 我最开始并不会给小程序分包&#xff0c;然后我就各种搜&#xff0c;发现讲的基本上都是开发之前的小程序分包&#xff0c;可是我都开发完要发布了&#xff0c;提示我说主包太大需要分包&#xff0c;所以我就不会了。。。 好了…...

java配置api,vue网页调用api从oracle数据库读取数据

一、主入口文件 1&#xff1a;java后端端口号 2&#xff1a;数据库类型 和 数据库所在服务器ip地址 3&#xff1a;服务器用户名和密码 二、映射数据库表中的数据 resources/mapper/.xml文件 1&#xff1a;column后变量名是数据库中存储的变量名 property的值是column值的…...

iOS三方登录 - Facebook登录

引言 在出海APP的开发中&#xff0c;集成主流社交平台的三方登录已成为必不可少的一环。Facebook 作为全球最大的社交网络平台之一&#xff0c;其提供的 Facebook 登录功能能够大大简化用户注册和登录流程&#xff0c;提高用户体验&#xff0c;减少流失率。对于开发者而言&…...

使用 OpenGL ES 渲染一个四边形

使用 OpenGL ES 渲染一个四边形 在 iOS 开发中,OpenGL ES 是一个强大的工具,用于实现高性能的 2D 和 3D 图形渲染。本文将通过一个完整的代码示例,详细解析如何使用 OpenGL ES 渲染一个简单的四边形。我们将从基础概念入手,逐步讲解代码的每个部分,帮助你理解 OpenGL ES …...

机器学习 - 理解偏差-方差分解

为了避免过拟合&#xff0c;我们经常会在模型的拟合能力和复杂度之间进行权衡。拟合能力强的模型一般复杂度会比较高&#xff0c;容易导致过拟合。相反&#xff0c;如果限制模型的复杂度&#xff0c;降低其拟合能力&#xff0c;又可能会导致欠拟合。因此&#xff0c;如何在模型…...