SpringCloud与SpringBoot版本选型

版本选择

SpringBoot2.x版 + SpringCloudH版

SpringBoot选择

git源码地址 :https://github.com/spring-projects/spring-boot/releases/

SpringBoot2.x新特性 :通过上面官网发现,Boot官方强烈建议你升级到2.X以上版本

SpringCloud版本对应的SpringBoot依赖选型

https://start.spring.io/actuator/info  json

{"git":{"branch":"main","commit":{"id":"038f771","time":"2024-02-16T08:10:27Z"}},"build":{"version":"0.0.1-SNAPSHOT","artifact":"start-site","versions":{"spring-boot":"3.2.2","initializr":"0.21.0-SNAPSHOT"},"name":"start.spring.io website","time":"2024-02-16T08:12:32.170Z","group":"io.spring.start"},"bom-ranges":{"codecentric-spring-boot-admin":{"3.2.1":"Spring Boot >=3.1.0 and <3.3.0-M1"},"hilla":{"2.5.5":"Spring Boot >=3.1.0 and <3.3.0-M1"},"sentry":{"7.3.0":"Spring Boot >=2.7.0 and <3.3.0-M1"},"solace-spring-boot":{"2.0.0":"Spring Boot >=3.0.0"},"solace-spring-cloud":{"3.0.0":"Spring Boot >=3.0.0 and <3.1.0-M1","3.1.0":"Spring Boot >=3.1.0-M1 and <3.3.0-M1"},"spring-cloud":{"2022.0.5":"Spring Boot >=3.0.0 and <3.2.0-M1","2023.0.0-RC1":"Spring Boot >=3.2.0-M1 and <3.2.0","2023.0.0":"Spring Boot >=3.2.0"},"spring-cloud-azure":{"5.9.1":"Spring Boot >=3.0.0 and <3.3.0-M1"},"spring-cloud-gcp":{"4.9.3":"Spring Boot >=3.0.0 and <3.2.0-M1","5.0.3":"Spring Boot >=3.2.0-M1 and <3.3.0-M1"},"spring-cloud-services":{"4.0.3":"Spring Boot >=3.0.0 and <3.2.0-M1","4.1.0":"Spring Boot >=3.2.0-M1 and <3.3.0-M1"},"spring-modulith":{"1.0.5":"Spring Boot >=3.1.0 and <3.2.0-M1","1.1.2":"Spring Boot >=3.2.0-M1 and <3.3.0-M1","1.2.0-M1":"Spring Boot >=3.3.0-M1"},"spring-shell":{"3.1.7":"Spring Boot >=3.1.0 and <3.2.0-M1","3.2.0":"Spring Boot >=3.2.0-M1 and <3.3.0-M1"},"timefold-solver":{"1.7.0":"Spring Boot >=3.0.0 and <3.3.0-M1"},"vaadin":{"24.3.5":"Spring Boot >=3.0.0 and <3.3.0-M1"}},"dependency-ranges":{"dgs-codegen":{"6.0.3":"Spring Boot >=3.0.0-M1"},"okta":{"3.0.6":"Spring Boot >=3.0.0 and <3.3.0-M1"},"mybatis":{"3.0.3":"Spring Boot >=3.0.0"},"pulsar":{"0.2.0":"Spring Boot >=3.0.0 and <3.2.0-M3","managed":"Spring Boot >=3.2.0-M3"},"pulsar-reactive":{"0.2.0":"Spring Boot >=3.0.0 and <3.2.0-M1","managed":"Spring Boot >=3.2.0-M1"},"camel":{"4.2.0":"Spring Boot >=3.0.0 and <3.2.0-M1","4.3.0":"Spring Boot >=3.2.0-M1 and <3.3.0-M1"},"picocli":{"4.7.5":"Spring Boot >=3.0.0 and <3.2.0-M1"},"wavefront":{"3.2.0":"Spring Boot >=3.2.0 and <3.3.0-M1","managed":"Spring Boot >=3.3.0-M1"}}}

<dependencies>
<!--spring boot 2.2.2->
    <dependency>
        <groupId>org. springframework.boot</groupId>
        KartifactId>spring-boot-dependencies</artifactId>
        <version>2.2.2.RELEASE</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>
<!--spring cloud Hoxton. SR1-->
    <dependency>
        <groupId>org.springframework. cloud</groupId>
        KartifactId>spring-cloud-dependencies</artifactId>
        <version>Hoxton. SR1</version>
        <type>pom</type>
        <scope>import</scope>
     </dependency>
<!--spring cloud alibaba 2.1.0.RELEASE-->
    <dependency>
        <groupId>com.alibaba. cloud</groupId>
        <artifactId>spring-cloud-alibaba-dependencies</artifactId>
        <version>2.1.0.RELEASE</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>
</dependencies>

 Cloud升级

官网

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值