sunny123456

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

springboot的版本和springcloud的版本不一致导致
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.Configurati

错误截图

在spring项目启动时报错
在这里插入图片描述

报错原因

springboot的版本和springcloud的版本不一致导致

解决方案

这里的springboot的版本和springcloud的版本干脆都升级到最新版本
在这里插入图片描述
对cloud的版本就行控制
在这里插入图片描述

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>2020.0.1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

运行结果

在这里插入图片描述

正常运行

https://blog.csdn.net/m0_47333020/article/details/115334852
posted on 2022-08-26 16:18  sunny123456  阅读(349)  评论(0编辑  收藏  举报