Spring Cloud 和Spring Boot 以及JDK 版本映射
warning:
这篇文章距离上次修改已过201天,其中的内容可能已经有所变动。
Spring Cloud和Spring Boot的版本关系如下:
Spring Cloud 版本:
- Greenwich
- Hoxton
- Ilford
- Finchley
- Edgware
- Dalston
Spring Boot版本:
- 2.2.x
- 2.1.x
- 2.0.x
- 1.5.x
JDK版本:
- Spring Boot 2.2.x 和 Spring Cloud Greenwich 需要 JDK 8-14
- Spring Boot 2.1.x 需要 JDK 8-12
- Spring Boot 2.0.x 需要 JDK 8-11
- Spring Boot 1.5.x 需要 JDK 8
具体版本对应关系可以查看Spring官方文档或GitHub仓库的tags。
举例,如果你想使用Spring Cloud Greenwich版本,并且希望使用JDK 11,那么你应该使用Spring Boot 2.1.x或2.2.x版本。
在项目中指定版本,可以在项目的pom.xml
文件中使用属性来指定版本:
确保你使用的Spring Cloud版本与Spring Boot版本兼容。
评论已关闭