关于spring-boot-denpendencies

在SpingBoot中所有的依赖管理,都是由spring-boot-dependencies来做的,在这个模块中管理了常用的依赖以及版本,因此我们的SpringBoot中引入依赖时,不需要指定版本号。
具体管理了哪些依赖,可以通过下面的链接查看

springboot-dependencies-management

这个模块在Maven中也是单独作为一个依赖存在的,因此我们可以直接使用这个模块

Maven-Spring-boot-dependencies

如果不采用继承spring-boot-starter-parent模块
采用下面这种方式也能实现创建一个SpringBoot项目

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.4.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

参考文章:
spring-boot-dependencies - 知乎

posted @   秋天Code  阅读(28)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示