当前位置:网站首页>Error creating bean with name ‘configDataContextRefresher‘ defined in class path resource
Error creating bean with name ‘configDataContextRefresher‘ defined in class path resource
2022-08-05 04:23:00 【zhm_sky】
问题原因:在创建springboot项目的时候,引入了cloud的相关组件,但是后面springboot的版本太高,于是乎手动降了版本。问题来了,此时的springboot和cloud版本出现了不对应,以下是两者的版本兼容对应表,请自行对照修改对应版本。
例如我的springboot版本为2.2.3,
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
那么对应的springcloud版本为H,Spring Cloud Alibaba版本为2.1.0
<dependencyManagement>
<dependencies>
<!--Spring Cloud-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--Spring Cloud Alibaba-->
<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>
</dependencyManagement>
边栏推荐
- UE4 通过与其它Actor互动开门
- 关于sklearn库的安装
- 炎炎夏日教你利用小米智能家居配件+树莓派4接入Apple HomeKit
- Homework 8.4 Interprocess Communication Pipes and Signals
- dedecms报错The each() function is deprecated
- Talk about 20 common problems in data governance
- UE4 通过互动(键盘按键)开门
- 四位数显表头设计
- DEJA_VU3D - Cesium功能集 之 057-百度地图纠偏
- Mysql's redo log detailed explanation
猜你喜欢
随机推荐
University Physics---Particle Kinematics
为什么刚考完PMP,就开始准备软考了?
如何解决复杂的分销分账问题?
flink reads mongodb data source
2022软件测试工程师最全面试题
dedecms报错The each() function is deprecated
Day019 方法重写与相关类的介绍
机器学习概述
UE4 更改组件变量 (以修改第一人称角色模板的最大行走速度和跳跃高度为例)
Index Mysql in order to optimize paper 02 】 【 10 kinds of circumstances and the principle of failure
upload upload pictures to Tencent cloud, how to upload pictures
MySql index learning and use; (I think it is detailed enough)
Day14 jenkins deployment
The production method of the powered small sailboat is simple, the production method of the electric small sailboat
[8.1] Code Source - [The Second Largest Number Sum] [Stone Game III] [Balanced Binary Tree]
No regrets, the appium automation environment is perfectly built
Haproxy搭建Web群集
DEJA_VU3D - Cesium功能集 之 058-高德地图纠偏
【8.4】代码源 - 【数学】【历法】【删库】【不朴素的数列(Bonus)】
虚证、实证如何鉴别?