SpirngCloud版本选择

本文介绍了SpringCloud各版本的发布情况及与SpringBoot的兼容性,并推荐了当前较为稳定的SpringCloud Hoxton SR6版本。文章还提供了详细的环境配置指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SpringCloud版本选择

1.版本选择官方建议

  • Angel 版本基于springboot1.2.x版本构建与1.3版本不兼容
  • Brixton 版本基于springboot1.3.x版本构建与1.2版本不兼容
    `2017年Brixton and Angel release官方宣布报废
  • Camden 版本基于springboot1.4.x版本构建并在1.5版本通过测试
    `2018年Camden release官方宣布报废
  • Dalston、Edgware 版本基于springboot1.5.x版本构建目前不能再springboot2.0.x版本中使用
    `Dalston(达尔斯顿)将于2018年12月官方宣布报废。Edgware将遵循Spring Boot 1.5.x的生命周期结束。
  • Finchley 版本基于springboot2.0.x版本进行构建,不能兼容1.x版本
  • Greenwich 版本基于springboot2.1.x版本进行构建,不能兼容1.x版本
  • Hoxton 版本基于springboot2.2.x版本进行构建

image-20211121201703949

  • springboot 2.2.x.RELEASE+(我这里推荐用2.2.5.RELEASE)
  • springcloud Hoxton SR1~6
  • java8+
  • maven 3.3.6+
  • idea 2018.3.5+

环境搭建

SpringCloud采用全局管理

<!--定义springcloud使用版本号-->
<properties>
  <java.version>1.8</java.version>
  <spring-cloud.version>Hoxton.SR6</spring-cloud.version>
</properties>
<!--全局管理springcloud版本,并不会引入具体依赖-->
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-dependencies</artifactId>
      <version>${spring-cloud.version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值