我springboot,jdk,maven,gradle版本对应关系

2025-11-04 08:46:16

springboot,jdk,maven,gradle版本对应关系

网址

https://spring.io/ # spring官网

https://spring.io/projects/spring-boot # springboot官网

https://www.oracle.com/ # oracle jdk官网

https://www.oracle.com/cn/ # oracle jdk中文官网

https://maven.apache.org/ # maven官网

https://mvnrepository.com/ # maven仓库

https://maven.apache.org/docs/history.html # maven支持的jdk版本页面

https://spring.io/projects/spring-boot#support # springboot版本维护时间

https://docs.spring.io/spring-boot/docs/ # springboot官方文档

# springboot对应关系官网地址,把 1.2.1.RELEASE/2.2.0.RELEASE/3.2.0 换成 对应版本即可

https://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/html/getting-started-system-requirements.html

https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

https://docs.spring.io/spring-boot/docs/3.2.0/reference/html/getting-started.html#getting-started.system-requirements

对应关系

查看maven和jdk的对应关系

查看springboot和jdk对应关系

查看具体springboot版本和jdk等对应关系

打开spring官网

点击菜单Projects\Spring Boot

然后点击LEARN页签,查看主流的springboot版本

查看对应版本的Reference Doc页签

点击左侧的Getting Started菜单

接着点击左侧的2. System Requirements菜单

可以看到Spring Boot此版本对jdk、Spring Framework、Maven、Gradle和Servlet Containers的版本要求说明

版本标识的意义

CURRENT:代表了当前版本,最新发布版本,里程碑版本。

GA:通用正式发布版本,同release。

SNAPSHOT:快照版本,可用但非稳定版本。

PRE:预览版本。

M版本:M1,M2,M3中的M是milestone的简写,这个单词是里程碑的意思。

Alpha:也被称为内部测试版或预览版,这些版本通常不会对外部用户公开,因为它们可能包含许多尚未修复的漏洞和不完整的功能。通常只有开发团队和其他内部相关人士才能访问和使用 Alpha 版本。

Beta:是一种公开测试版,位于 Alpha 版本之后。这个阶段的版本通常会加入新功能,并且相较于 Alpha 版本来说会更加稳定。Beta 版本主要面向特定的用户群体进行测试,如合作伙伴、潜在客户或早期采用者。

版本对应关系

Spring boot 版本

jdk 版本

maven 版本

Gradle 版本

网址

1.2.0 版本之前

1.2.0.RELEASE

6

3.2+

1.12+

https://docs.spring.io/spring-boot/docs/1.2.0.RELEASE/reference/html/getting-started-system-requirements.html

1.2.1.RELEASE

6

3.2+

1.12+

https://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/html/getting-started-system-requirements.html

1.2.2.RELEASE

7

3.2+

1.12+

https://docs.spring.io/spring-boot/docs/1.2.2.RELEASE/reference/html/getting-started-system-requirements.html

1.3.7.RELEASE

7

3.2+

1.12+

https://docs.spring.io/spring-boot/docs/1.3.7.RELEASE/reference/html/getting-started-system-requirements.html

1.3.8.RELEASE

7

3.2+

1.12 or 2.x

https://docs.spring.io/spring-boot/docs/1.3.8.RELEASE/reference/html/getting-started-system-requirements.html

1.4.0.RELEASE

7

3.2+

1.12+

https://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/reference/html/getting-started-system-requirements.html

1.4.1.RELEASE

7

3.2+

1.12 or 2.x

https://docs.spring.io/spring-boot/docs/1.4.1.RELEASE/reference/html/getting-started-system-requirements.html

1.4.7.RELEASE

7

3.2+

1.12 or 2.x

https://docs.spring.io/spring-boot/docs/1.4.7.RELEASE/reference/html/getting-started-system-requirements.html

1.5.0.RELEASE

7

3.2+

[2.9, 3.x]

https://docs.spring.io/spring-boot/docs/1.5.0.RELEASE/reference/html/getting-started-system-requirements.html

1.5.22.RELEASE

7

3.2+

[2.9, 3.x]

https://docs.spring.io/spring-boot/docs/1.5.22.RELEASE/reference/html/getting-started-system-requirements.html

2.0.0.RELEASE

8

3.2+

4

https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/html/getting-started-system-requirements.html

2.0.9.RELEASE

8

3.2+

4

https://docs.spring.io/spring-boot/docs/2.0.9.RELEASE/reference/html/getting-started-system-requirements.html

2.1.0.RELEASE

8

3.3+

4.4+

https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/html/getting-started-system-requirements.html

2.1.14.RELEASE

8

3.3+

4.4+

https://docs.spring.io/spring-boot/docs/2.1.14.RELEASE/reference/html/getting-started-system-requirements.html

2.1.15.RELEASE

8

3.3+

[4.4+, 5.x]

https://docs.spring.io/spring-boot/docs/2.1.15.RELEASE/reference/html/getting-started-system-requirements.html

2.1.18.RELEASE

8

3.3+

[4.4+, 5.x]

https://docs.spring.io/spring-boot/docs/2.1.18.RELEASE/reference/html/getting-started-system-requirements.html

2.1.2.RELEASE

8

3.3+

4.4+

https://docs.spring.io/spring-boot/docs/2.1.2.RELEASE/reference/html/getting-started-system-requirements.html

2.1.9.RELEASE

8

3.3+

4.4+

https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/getting-started-system-requirements.html

2.2.0.RELEASE

8

3.3+

5.x

https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.2.1.RELEASE

8

3.3+

5.x

https://docs.spring.io/spring-boot/docs/2.2.1.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.2.10.RELEASE

8

3.3+

[5.x,6.x]

https://docs.spring.io/spring-boot/docs/2.2.10.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.2.9.RELEASE

8

3.3+

[5.x,6.x]

https://docs.spring.io/spring-boot/docs/2.2.9.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.0.RELEASE

8

3.3+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.0.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.10.RELEASE

8

3.3+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.10.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.11.RELEASE

8

3.5+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.11.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.12.RELEASE

8

3.5+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.12.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.2.RELEASE

8

3.3+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.2.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.3.9.RELEASE

8

3.3+

6.3+

https://docs.spring.io/spring-boot/docs/2.3.9.RELEASE/reference/html/getting-started.html#getting-started-system-requirements

2.4.0

8

3.3+

6.3+

https://docs.spring.io/spring-boot/docs/2.4.0/reference/html/getting-started.html#getting-started-system-requirements

2.5.0

8

3.5+

6.8.x, 6.9.x, and 7.x

https://docs.spring.io/spring-boot/docs/2.5.0/reference/html/getting-started.html#getting-started.system-requirements

2.6.0

8

3.5+

6.8.x, 6.9.x, and 7.x

https://docs.spring.io/spring-boot/docs/2.6.0/reference/html/getting-started.html#getting-started.system-requirements

2.7.0

8

3.5+

6.8.x, 6.9.x, and 7.x

https://docs.spring.io/spring-boot/docs/2.7.0/reference/html/getting-started.html#getting-started.system-requirements

3.0.0

17

3.5+

7.5+

https://docs.spring.io/spring-boot/docs/3.0.0/reference/html/getting-started.html#getting-started.system-requirements

3.1.0

17

3.6.3+

[7.5,8.x]

https://docs.spring.io/spring-boot/docs/3.1.0/reference/html/getting-started.html#getting-started.system-requirements

3.2.0

17

3.6.3+

[7.5,8.x]

https://docs.spring.io/spring-boot/docs/3.2.0/reference/html/getting-started.html#getting-started.system-requirements

...

注意:springboot版本具体还支持哪些jdk(列出的只是默认的,比如列出的是7,实际上可能支持6-11,需要具体查看),以及Servlet Containers(Tomcat,Jetty,Undertow )和 Spring Framework的具体版本点开右侧链接直接查看。不同版本修改版本即可访问。有的版本文档路径不完全一致,可以访问https://docs.spring.io/spring-boot/docs/文档查看具体版本的对应关系。

参考文献

https://baijiahao.baidu.com/s?id=1794553580817579513&wfr=spider&for=pc

https://www.cnblogs.com/oumi/p/9241424.html