Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBean

得意时要看淡,失意时要看开。不论得意失意,切莫大意;不论成功失败,切莫止步。志得意满时,需要的是淡然,给自己留一条退路;失意落魄时,需要的是泰然,给自己觅一条出路Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBean,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com,来源:原文

Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata

org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata

在这里插入图片描述

如果出现上上面这三个错误大概率时spring boot版本和spring cloud版本不对应有冲突造成的。只需修改版本使其不冲突即可。

例如我使用的spring boot版本使2.6.10的
在这里插入图片描述

却使用了较低版本的spring cloud组件因此造成版本冲突

在这里插入图片描述

然后我就尝试换成了较高版本的spring cloud的插件

在这里插入图片描述
结果还是报错,但贴心的这个版本为我提示了建议版本,真的太贴心了!赞👍

在这里插入图片描述

按照其建议降低了spring boot的版本

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.3</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/156251.html

(0)
飞熊的头像飞熊bm

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!