构建SpringCloudAlibaba项目报错:Cannot instantiate interface org.springframework.boot.BootstrapRegistryInit

构建SpringCloudAlibaba项目报错:Cannot instantiate interface org.springframework.boot.BootstrapRegistryInit

如图:
报错信息
出现这个原因的根本是:
spring-boot、spring-cloud、spring-cloud-alibaba出现版本冲突导致。
由于Spring Cloud Alibaba基于spring-cloud部分组件来实现,所以对应版本要保持正确的映射关系。
下面整理了部分映射关系如下:

Spring Boot版本Spring Cloud版本Spring Cloud Alibaba版本
3.0.2SpringCloud2022.0.02022.0.0.0
3.0.2SpringCloud2022.0.02022.0.0.0-RC2
3.0.0SpringCloud2022.0.02022.0.0.0-RC1
2.6.13SpringCloud2021.0.52021.0.5.0
2.6.11SpringCloud2021.0.42021.0.4.0
2.6.3SpringCloud2021.0.12021.0.1.0
2.4.2SpringCloud2020.0.12021.1
2.3.12.RELEASESpringCloudHoxton.SR122.2.10-RC1
2.3.12.RELEASESpringCloudHoxton.SR122.2.9.RELEASE
2.3.12.RELEASESpringCloudHoxton.SR122.2.8.RELEASE
2.3.12.RELEASESpringCloudHoxton.SR122.2.7.RELEASE
2.3.2.RELEASESpringCloudHoxton.SR92.2.6.RELEASE
2.2.5.RELEASESpringCloudHoxton.SR32.2.1.RELEASE
2.2.X.RELEASESpringCloudHoxton.RELEASE2.2.0.RELEASE
2.1.13.RELEASESpringCloudGreenwich.SR62.1.4.RELEASE
2.1.X.RELEASESpringCloudGreenwich2.1.2.RELEASE

其中Spring Cloud Alibaba与其组件版本对应关系如下:

Spring Cloud Alibaba 版本Sentinel 版本Nacos 版本RocketMQ 版本Dubbo 版本Seata 版本
2022.0.0.01.8.62.2.14.9.4~1.7.0
2022.0.0.0-RC21.8.62.2.14.9.4~1.7.0-native-rc2
2021.0.5.01.8.62.2.04.9.4~1.6.1
2.2.10-RC11.8.62.2.04.9.4~1.6.1
2022.0.0.0-RC11.8.62.2.1-RC4.9.4~1.6.1
2.2.9.RELEASE1.8.52.1.04.9.4~1.5.2
2021.0.4.01.8.52.0.44.9.4~1.5.2
2.2.8.RELEASE1.8.42.1.04.9.3~1.5.1
2021.0.1.01.8.31.4.24.9.2~1.4.2
2.2.7.RELEASE1.8.12.0.34.6.12.7.131.3.0
2.2.6.RELEASE1.8.11.4.24.4.02.7.81.3.0
2021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE1.8.01.4.14.4.02.7.81.3.0
2.2.3.RELEASE or 2.1.3.RELEASE or 2.0.3.RELEASE1.8.01.3.34.4.02.7.81.3.0
2.2.1.RELEASE or 2.1.2.RELEASE or 2.0.2.RELEASE1.7.11.2.14.4.02.7.61.2.0
2.2.0.RELEASE1.7.11.1.44.4.02.7.4.11.0.0
2.1.1.RELEASE or 2.0.1.RELEASE or 1.5.1.RELEASE1.7.01.1.44.4.02.7.30.9.0
2.1.0.RELEASE or 2.0.0.RELEASE or 1.5.0.RELEASE1.6.31.1.14.4.02.7.30.7.1

参考来源:
spring-cloud-alibaba : spring-cloud-alibaba

查询springcloud和springboot对应关系如下:
Spring Cloud: Spring Cloud
对应关系

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值