You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何查询Spring Boot 3.2.4中spring-boot-starter-security的Spring Security版本?

查询Spring Boot 3.2.4中spring-boot-starter-security对应的Spring Security版本的方法

以下是几种可靠且不会过时的查询方式:

  • Maven项目快速查询
    在项目根目录执行命令:

    mvn dependency:tree -Dincludes=org.springframework.security:spring-security-web
    

    输出结果里会直接显示Spring Security Web模块的版本,这也是starter核心依赖的版本。或者用更精准的命令:

    mvn help:describe -Dartifact=org.springframework.boot:spring-boot-starter-security:3.2.4 -Ddetail
    

    在输出的Dependencies部分可以找到所有Spring Security相关组件的版本。

  • Gradle项目快速查询
    在项目根目录执行命令:

    ./gradlew dependencies --configuration runtimeClasspath | grep spring-security
    

    过滤后的结果会展示所有Spring Security相关依赖的版本号。

  • 直接查看Spring Boot依赖管理定义
    Spring Boot的父依赖spring-boot-dependencies统一管理所有starter的依赖版本,在spring-boot-dependencies-3.2.4.pom文件中,spring-security.version属性的值就是对应版本。对于Spring Boot 3.2.4,该版本为6.2.4。

  • 查看starter的依赖清单
    找到本地Maven仓库中org/springframework/boot/spring-boot-starter-security/3.2.4/spring-boot-starter-security-3.2.4.pom文件,打开后可直接看到其依赖的Spring Security各模块的具体版本。

内容的提问来源于stack exchange,提问作者PLy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 16:03:10