如何解决spring initializr 2.3.x 已删除
Spring Boot 2.3.12.RELEASE 于 2021 年 6 月 10 日发布,并于 7 月从“spring initializr”页面 (https://start.spring.io/) 中删除。
我的问题:
解决方法
2.3.x 已经过时了吗?
是的。 Spring Boot 2.3.x 从 https://start.spring.io 中删除为 2.3.x reached the end of its open source support period on 15 May 2021。
如果我想为 2.3.12 版本生成一个新的 Spring Boot 项目,我该怎么做?
理想情况下,您不应该这样做。任何使用 Spring Boot 2.3.x 的现有项目都应尽快更新到 2.4.x 或 2.5.x,新项目应从一开始就使用 2.4.x 或 2.5.x。
如果您必须使用不受支持的 Spring Boot 版本启动新项目,您可以生成该项目,然后在 pom.xml
或 build.gradle
文件中修改版本以降级版本。版本停止支持的时间越长,这可能会变得越困难。
如果您使用的是 Spring Cloud,则可以使用 start.spring.io 的 info endpoint 来帮助进行版本映射:
…
"spring-cloud": {
"2020.0.0": "Spring Boot >=2.4.0.M4 and <=2.4.0","2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1","2020.0.0-M4": "Spring Boot >=2.4.0.M2 and <=2.4.0-M3","2020.0.3": "Spring Boot >=2.4.1 and <2.5.4-SNAPSHOT","2020.0.4-SNAPSHOT": "Spring Boot >=2.5.4-SNAPSHOT","Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1"
},…
以上表明 Spring Cloud Hoxton.SR12 应该与 Spring Boot 2.3.x(和 2.2.x)一起使用。
请注意 Spring Cloud Hoxton is also out of its OSS support period,因此您确实应该考虑升级到 Spring Boot 2.4.x 或 2.5.x 和 Spring Cloud 2020.0.x。
,答案 1: 检查 @andy-wilkinson 的 answer。
答案 2:您可以使用 Spring-CLI
步骤:
- 安装Spring-CLI
- 运行以下命令
spring init --boot-version=2.3.12.RELEASE --dependencies=web,data-jpa 旧启动项目
有关 Spring-CLI 的更多信息。请查看官方文档here
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。